Skip to content

Instantly share code, notes, and snippets.

View lgaggini's full-sized avatar

Lorenzo Gaggini lgaggini

View GitHub Profile
@lgaggini
lgaggini / dynamic_motd.sh
Created June 12, 2015 17:02
Shell script to generate a motd with some system infos and goodies
#!/bin/sh
#---------------------------
#-- dynamic_motd --
#-- by lgaggini --
#-- CC BY-SA 3.0 --
#---------------------------
echo -e "
db d888b .d8b. d888b d888b d888888b d8b db d888888b
88 88' Y8b d8' 8b 88' Y8b 88' Y8b 88' 888o 88 88'
@lgaggini
lgaggini / fabfile_apt_manager.py
Last active August 29, 2015 14:07 — forked from justquick/fabfile.py
Fabfile to manage apt-get updates on multiple machines, with or without confirms required
"""
Ubuntu update manager for Fabric
Checks for updates, installs them across multiple servers
Create a "hosts" file alongside this fabfile and put your hosts in there one per line
Updating package list::
fab update