Added SSHconnect and bin

This commit is contained in:
Nikolas Weger 2015-07-25 12:49:41 +02:00
parent be078ac68c
commit 067555dd63
3 changed files with 57 additions and 0 deletions

24
bin/caniuse Executable file
View file

@ -0,0 +1,24 @@
# CanIUse.com Command Line Search Utility
# Michael Wales, http://github.com/walesmd
#
# A very basic bash function that quickly searches http://caniuse.com/
#
# Examples:
# caniuse
# caniuse border-radius
# caniuse "alpha transparency" counters "canvas drawings" html svg
caniuse() {
local domain="http://caniuse.com/"
local query
if [ $# -eq 0 ]; then
open ${domain}
else
for term in "$@"; do
query=$(python -c "import sys, urllib as ul; print ul.quote('${term}');")
open "${domain}#search=${query}"
done
fi
}