Instantly share code, notes, and snippets.

View Open All Tabs In Chrome.scpt
(* trivial applescript to open all tabs in a Safari window in Chrome
storing it here because I _always_ forget how to get _tabs in a usable form *)
tell application "Safari"
tell application "Google Chrome" to set w to (make new window)
set _tabs to (URL of every tab of window 1)
repeat with t in _tabs
tell application "Google Chrome" to tell w to make new tab with properties {URL:t}
end repeat
end tell
View Reflow XML.sh
#!/usr/bin/env bash
# put this file in Application Support/BBedit/Text Filters/
# xmllint ships by default in recent versions of OS X
xmllint --format -
View instructions.md

Custom Twitter Stylesheet

Modified from @tealtan's original for a lighter touch. Doesn't interfere with font faces or hide UI elements, except promoted tweets and trends.

Does equalise all the tweets on your profile page to the same font size and weight.

You can add this CSS in Safari with this extension. The URL to target is twitter.com/*.

Updated 2014-09-27 to undo Twitter's hiding of pic.twitter.com links.

View Go here in iTerm2.scpt
-- based on http://pastebin.com/MSPZWWAj
-- which was in turn based on https://gist.github.com/2006738
-- but will open a new tab in the current terminal if one is open, rather than always creating a new terminal
tell application "BBEdit" to set theFile to file of document 1
tell application "Finder" to set theFolder to (container of file theFile) as alias
set theUnixPath to POSIX path of theFolder
tell application "iTerm"
if exists current terminal then
View gist:3941972
# how to migrate your Pocket reading list to Instapaper on the command line, by request from @rmi
# how to avoid getting blocked for exceeding the Instapaper API rate limit is left as an exercise for the reader
#
# yes, of course this is completely ridiculous
$ curl "https://readitlaterlist.com/v2/get?username=name&password=123&apikey=yourapikey" | \
jq '.list[].url' | \
tr -d \" | \
xargs -I %% curl "https://www.instapaper.com/api/add" -G --data "username=name" --data "pass=1234" --data-urlencode "url=%%"
View gist:1999721

The following bio is not endorsed by Mike Forbes!, because, amongst his many wonderful qualities, he is modest. Therefore his friends wish to toot his horn on his behalf.

Mike Forbes! is a rock of calmness and Getting Shit Done. Servers obey him; recalcitrant software bows before him. He knows everything that is worth knowing about good beer. He embraces drama and crises and smooths them into awesomeness by the power of his personality. He is kind, and patient, and friendly. He brings the magic. He is, in our considered opinion, a super awesome dude.