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
# even when the readline variable expand-tilde is set to off ~ gets replaced with the users directory | |
# to fix this erroneous behaviour add this to the end of your .bashrc (or upgrade to wheezy) | |
# tilde expansion is not affected by this so the tilde will still get replaced upon execution | |
__expand_tilde_by_ref() | |
{ | |
return 0; | |
} |
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
# found on Fred Schott's blog | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" |
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
touch ~/.hushlogin |
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
/* approach from browser extension by Ameya Lokare */ | |
/* for use with e.g. http://canisbos.com/quickscript */ | |
function containsShare(url) { | |
return /[&\?]share=1/.test(url); | |
} | |
function addShare(url) { | |
if (url.indexOf('?') < 0) { | |
url += "?share=1"; |
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
/usr/libexec/PlistBuddy /Applications/TunnelBear.app/Contents/Info.plist -c "Add LSUIElement String" | |
/usr/libexec/PlistBuddy /Applications/TunnelBear.app/Contents/Info.plist -c "Set LSUIElement 1" | |
sudo codesign -f -s - /Applications/TunnelBear.app |
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
/* supposingly a more proper way would be to configure the showProcessingMessages option*/ | |
/* for use with e.g. http://code.grid.in.th */ | |
div#MathJax_Message { | |
display: none !important; | |
} |
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" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>net.foobar.webloc</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/bash</string> | |
<string>-c</string> |
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
/* | |
for use with e.g. http://code.grid.in.th | |
url patterns to include: | |
https://*.wikipedia.org/* | |
https://*.wiktionary.org/* | |
https://*.wikiquote.org/* | |
https://*.wikibooks.org/* | |
https://commons.wikimedia.org/* | |
*/ |
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
# watch requires unicode patch to work properly: https://launchpad.net/debian/+source/procps/1:3.2.8-3 | |
watch -tn 10 'w3m http://www1.sportschau.de/sportschau_specials/layout/php/ticker/index.phtml?tid=2387 | tail -n+15' |
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
wget --content-disposition "https://www.dropbox.com/download?plat=mac&full=1" |
OlderNewer