using certbot to add ssl to your site
First install it with: dnf install certbot python3-certbot-apache
First install it with: dnf install certbot python3-certbot-apache
Search for all instances of ‘a minimal’ recursively, starting from the current directory. grep -ri 'a minimal' .
$ echo $OSTYPE darwin24.0
filename = File.join(__dir__, "example.txt") test_string = "Hello world" File.open(filename, "w") do |f| f.write(test_string) end Often we want to append to a file instead (like a logfile): ...
Read the $PATH environment variable in ruby: puts ENV["PATH"]
A collection of useful superglobals # location of website inside our computer echo $_SERVER["DOCUMENT_ROOT"]; echo "<br>"; echo $_SERVER["PHP_SELF"]; # i.e index.php echo "<br>"; echo ...
Learn X in Y Minutes - PHP https://learnxinyminutes.com/php/ PHP the Right Way https://phptherightway.com/
Use htmlspecialchars() for this: php > echo htmlspecialchars("<script>"); <script> This will prevent (most) XSS attacks.
Use the ssh command and pass in your public key, as well as the IP address of the machine you want to log in to. ssh -i ~/.ssh/id_ed25519_hetzner root@$MY_SERVER_IP_ADDRESS If it’s your first ti...
Use the find command: find . -name "about" However, the above command won’t match “about.md”. To match about* we need to use a wildcard find . -name "about*"