Skip to content

Instantly share code, notes, and snippets.

@giuliano-macedo
Created November 2, 2020 17:40
Show Gist options
  • Save giuliano-macedo/e5e378d3f79252888e4ef70ad6afe929 to your computer and use it in GitHub Desktop.
Save giuliano-macedo/e5e378d3f79252888e4ef70ad6afe929 to your computer and use it in GitHub Desktop.
some common custom shell commands i use, you can add to your home directory and add "source custom_commands.sh" on your .bashrc file to add them.
function notify_when_online(){
host=$1
while true; do
ping -c1 $host > /dev/null && break;
done && notify-send --icon=dialog-information "$host is online"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment