Created
February 10, 2012 14:22
-
-
Save apetrov/1789888 to your computer and use it in GitHub Desktop.
Recipes
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
Gem list - to installable script | |
replace \((\d\.\d+\.\d+)\) with --version=$1 | |
Remove blank lines | |
pbpaste | grep -v "^$" | pbcopy | |
html2haml | |
pbpaste | html2haml | pbcopy | |
format json | |
python -m json.tool | |
base64 (encode/decode): | |
pbpaste | base64 | |
pbpaste | base64 -D | |
Simple HTTP Server | |
python -m SimpleHTTPServer | |
Block country by IP | |
http://www.linuxstall.com/block-country-iptables/ | |
Render erg script | |
pbpaste | ruby -e "require 'erb';puts ERB.new(STDIN.read).result(nil);" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment