This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Play/Pause on Print</name> | |
<identifier>private.play_pause_on_printscreen</identifier> | |
<autogen>__KeyToKey__ KeyCode::F13, ConsumerKeyCode::MUSIC_PLAY</autogen> | |
</item> | |
<item> | |
<name>Enqueue play/pause Everywhere!</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this your shellrc file (`.bashrc`, `.zshrc`, etc) | |
vs() { | |
args=$(printf "%s " "$@") # concatenate arguments into single string | |
vagrant ssh -c "$args" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(example_gs). | |
-behaviour(gen_server). | |
-export([start_link/0, init/1]). | |
-export([handle_call/3, handle_cast/2, handle_info/2]). | |
-export([code_change/3, terminate/2]). | |
start_link() -> | |
gen_server:start_link(?MODULE, [], []). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/usr/bin/xdg-open.orig b/usr/bin/xdg-open | |
index 7218fee..53cd90a 100755 | |
--- a/usr/bin/xdg-open.orig | |
+++ b/usr/bin/xdg-open | |
@@ -643,7 +643,7 @@ search_desktop_file() | |
args=$(( $args - 1 )) | |
done | |
[ $replaced -eq 1 ] || set -- "$@" "$target" | |
- "$command_exec" "$@" | |
+ eval $("$command_exec" "$@") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove -y unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-musicstores unity-scope-musique unity-scope-openclipart unity-scope-manpages unity-scope-guayadeque unity-scope-gdrive unity-scope-gmusicbrowser unity-scope-gourmet unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-chromiumbookmarks unity-scope-clementine unity-lens-friends unity-scope-audacious unity-scope-calculator account-plugin-aim account-plugin-jabber account-plugin-salut account-plugin-yahoo account-plugin-twitter account-plugin-windows-live account-plugin-flickr account-plugin-google account-plugin-facebook && \ | |
sudo apt-get update && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install -y zsh vim tmux git pass virtualbox gnome-tweak-tool rxvt-unicode xclip nodejs-legacy libxslt-dev libxml2-dev openssh-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# BLACKIEOPS SUPER LEGIT BACKUP SOLUTION (TM) | |
# | |
# - rsync's a few directories to a specified path (hopefully a remote NFS | |
# mount or something) | |
# - Keeps only the last two weeks of backups. | |
run () { | |
MOUNT=/backup/contents/$(hostname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wc -l `find . -iname "*.php"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav.main-menu | |
a.nav-articles href="/" Articles | |
a.nav-portfolio href="/portfolio" Portfolio | |
a.nav-projects href="/projects" Projects | |
a.nav-speaking href="/speaking" Speaking | |
a.nav-about href="/about" About | |
a.nav-contact href="/contact" Contact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set Firefox to be default browser on non-desktop-environmented Linux | |
xdg-mime default firefox.desktop 'x-scheme-handler/http' | |
xdg-mime default firefox.desktop 'x-scheme-handler/https' |
OlderNewer