Skip to content

Instantly share code, notes, and snippets.

View notconscious's full-sized avatar

notconcious notconscious

View GitHub Profile
@notconscious
notconscious / root-theme.sh
Created March 19, 2013 17:07
Make programs running as root in Gnome use the same theme as regular programs.
#!/bin/bash
sudo ln -sv ~/.themes /root/.themes
sudo ln -sv ~/.icons /root/.icons
sudo ln -sv ~/.fonts /root/.fonts
@notconscious
notconscious / keys.sh
Created March 19, 2013 16:41
Auto-update apt repository keys in 248 characters.
sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "nProcessing key: $key"; gpg --keyserver subkeys.pgp.net --recv $key && gpg --export --armor $key | sudo apt-key add -; done