Skip to content

Instantly share code, notes, and snippets.

@Gpzim98
Last active October 23, 2017 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gpzim98/d4244d72e883aefc0dadb6364621d0ee to your computer and use it in GitHub Desktop.
Save Gpzim98/d4244d72e883aefc0dadb6364621d0ee to your computer and use it in GitHub Desktop.
# 1 - Find file terminal
find ~/ -type f -name "generate_interval.py"
# 2 - Checking HD size
df -H
# 3 - Tailing a log in realtime
tailor -f file.log
# 4 - If else param script bash
if [ $# -eq 0 ]; then
echo "No arguments supplied"
echo "RELEASE FAILED"
else
cd /var/www/html/my-app
sudo git pull $1 master
sudo /etc/init.d/apache2 restart
echo 'RELEASE DONE :)'
fi
# 5 - List computers connected network + mac address
arp
# 6 - Test InfluxDB is listen to connetions
curl -sL -I 34.196.147.163:8086/ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment