2 ms·
I have two programs that open Firefox. I also have some other programs, too. fav #!/bin/bash -- f0() { echo 'select moz_bookmarks.title || '"'"' = '"'
by zzo38computer 8y ago
I have two programs that open Firefox. I also have some other programs, too.
fav
#!/bin/bash --
f0() {
echo 'select moz_bookmarks.title || '"'"' = '"'"' || url from moz_places, moz_bookmarks on moz_places.id = moz_bookmarks.fk where parent = 2;' | sqlite3 /home/user/.mozilla/firefox/twht79zd.default/places.sqlite
}
f1() {
firefox `echo 'select url from moz_places, moz_bookmarks on moz_places.id = moz_bookmarks.fk where moz_bookmarks.title = '"'$1'"';' | sqlite3 /home/user/.mozilla/firefox/twht79zd.default/places.sqlite`
}
f$# $1
wikipedia
#!/bin/bash --
firefox 'http://en.wikipedia.org/wiki/Special:Search?search='`node -p 'escape(process.argv[1])' "$1"`
(Maybe there is a better way than calling Node.js to escape the URL)
icanhazip
#!/bin/bash --
curl 'http://icanhazip.com/'
repeat
#!/bin/bash --
X=$1
shift
for X in `seq 1 $X`; do "$@"; done
- vuln 8y agoipinfo #!/bin/bash -- curl 'http://ipinfo.io' ipinfo is a lot more verbose. Depending on your needs... Ex result: $curl ipinfo.io { "ip": "XXX.XXX.XXX.XXX", "hostname": "XXX.XXX.XXX", "city": "XXX", "region": "XXX", "country": "US", "loc": "XXX,XXX, "postal": "XXX", "phone": "XXX", "org": "ASXXX XXX XXX XXX" }