Skip to content

Instantly share code, notes, and snippets.

View zizitizi's full-sized avatar

zeinab tizkar zizitizi

View GitHub Profile
@terry-heinel
terry-heinel / checkDockerDisks.sh
Created January 30, 2017 22:56 — forked from robsonke/checkDockerDisks.sh
This Bash script will loop through all running docker containers on a host and list the disk usage per mount. In case it's breaching the 65%, it will email you.
#!/bin/bash
# get all running docker container names
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"
@abdulhamidalsalman
abdulhamidalsalman / nginx_odoo_letsencrypt.sh
Created July 30, 2016 13:36
Odoo Nginx Reverse Proxy automation with TLS using Let's Encrypt
#!/bin/bash
#--------------------------------------------------
# Locale changing for localization
#--------------------------------------------------
echo "*********************************"
echo "* *"
echo "* Changing Locales *"
echo "* *"
echo "*********************************"
# Configure timezone and locale