Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

James Vickery jmsv

🏠
Working from home
View GitHub Profile
@jmsv
jmsv / home-backup.sh
Created Jun 15, 2017
A tiny script to backup the users home (~) directory to ~/backups
View home-backup.sh
# A tiny script to backup the users home (~) directory to ~/backups
# chmod +x home-backup.sh
# mkdir ~/backups/
# ./home-backup.sh
DATE=`date +%Y%m%d-%H%M`
tar -cvpzf ~/backups/$DATE-home-backup.tar.gz --exclude='*-home-backup.tar.gz' --one-file-system /home/
View ubuntu16-setup.sh
# Get this using `wget https://raw.githubusercontent.com/jamesevickery/ubuntu-setup/master/setup-16u.sh`
# update and upgrade
apt-get -y update
apt-get -y upgrade
# remove amazon thing
rm -rf /usr/share/applications/ubuntu-amazon-default.desktop
cp /usr/share/applications/ubuntu-amazon-default.desktop ~/.local/share/applications/ubuntu-amazon-default.desktop
echo Hidden=true >> ~/.local/share/applications/ubuntu-amazon-default.desktop