This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /var/www | |
crontab -l > cronStetup | |
ip=$(ip -4 addr show eth0 | awk '/inet / {print $2}' | cut -d'/' -f1) | |
dt=$(date +"%Y-%m-%d_%H-%M-%S" | tr -d ':') | |
zip -D "${ip}_${dt}.zip" * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval $(ssh-agent -k) | |
eval $(ssh-agent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var counter = 1; counter <= 100; counter++) { | |
var output = ""; | |
if (counter % 3 == 0) | |
output += "Fizz"; | |
if (counter % 5 == 0) | |
output += "Buzz"; | |
console.log(output || counter); | |
} |