php resources
Learn X in Y Minutes - PHP https://learnxinyminutes.com/php/ PHP the Right Way https://phptherightway.com/
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*"
Use the following: lsof -i :4000 To kill the process use kill -9 PID
To add a folder to your PATH, add the following to your bash config: export PATH="$PATH:/foo/bar" To check what is on your path, run: echo $PATH
weekly_meters.each do |week, meters| puts "#{week}: #{meters}" end
# create hash my_dict = { "apples" => 3, "pears" => 2 } # check if a key exists puts my_dict.has_key?("apples") # true puts my_dict.has_key?("oranges") # false Sources ruby docs