Skip to content

Instantly share code, notes, and snippets.

Keith Bolland ideabucket

Block or report user

Report or block ideabucket

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
ideabucket / Reflow
Last active Oct 25, 2019
BBEdit text filter to replace Markup → Tidy → Reflow XML
View Reflow
#!/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 -
ideabucket /
Last active Aug 29, 2015 — forked from tealtan/

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*.

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

ideabucket / Go here in iTerm2.scpt
Last active Oct 27, 2018
"Go Here in iTerm2" handler for BBEdit
View Go here in iTerm2.scpt
-- based on
-- which was in turn based on
-- 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 "" | \
jq '.list[].url' | \
tr -d \" | \
xargs -I %% curl "" -G --data "username=name" --data "pass=1234" --data-urlencode "url=%%"
ideabucket / gist:1999721
Created Mar 8, 2012
A Short Gist About Mike Forbes!
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.

You can’t perform that action at this time.