Skip to content

Instantly share code, notes, and snippets.

John Bender johnbender

Block or report user

Report or block johnbender

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
johnbender / prefs.js
Created Feb 23, 2013
Set up Chrome Secure Shell to handle solarized terminal colors
View prefs.js
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('color-palette-overrides', [
johnbender /
Last active Dec 13, 2015
Replace a sed match with file contents.
sed -i.bkp "/$replace/{
r $replace_with
}" $replace_in
View wod
800m Run/Row
3 Rounds:
12 KB Swings
10 No Push-up Burpee
800m Run/Row
3 Rounds:
5 Pull-ups
johnbender /
Last active Dec 10, 2015
New Year's resolutions

New Year's Resolutions

A list of nest years resolutions and an accounting of this years success/failures


  1. Publish
  2. Pass 281a
  3. Be more patient
# Requires that you download and build cutycapt
# Once that's done all you have to do is reference each of your slides in some fashion or
# another. With Showoff it actually crops right to the slide dimensions (added bonus)
# NOTE replace slide count used to sequence the images, in this case 100
for i in $(seq 1 100); do
$(./path/to/Cuty/Capt/Binary --url=$i --out=$i.png)
View haskell-blah.irc
09:11 < xplat> > map (\x -> if x > 0 then 'o' else 'n') [0..]
09:11 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:11 -!- cscorley [] has joined #haskell-blah
09:11 < tac-tics> > 'n' : fix ('o':)
09:11 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:12 < xplat> > 'n':['o','o'..]
09:12 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:12 < tac-tics> > 'n' : ['o' ..]
09:12 < lambdabot> "nopqrstuvwxyz{|}~\DEL\128\129\130\131\132\133\134\135\136\137\138\139\140\...
09:12 < tac-tics> :P
johnbender / xmonad.hs
Created Oct 15, 2011
my super simple xmonad config, works with unity2d (eg 11.10)
View xmonad.hs
import XMonad
import XMonad.Config.Gnome
import XMonad.Layout.NoBorders
import XMonad.Layout.Gaps
import XMonad.Util.EZConfig
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import qualified XMonad.StackSet as W
main = xmonad $ gnomeConfig { terminal = "gnome-terminal"
johnbender / deleteNotifications.js
Created Jul 8, 2011
delete notification in github bookmarklet
View deleteNotifications.js
javascript:void((function(){ $(".del a").click(); })())
johnbender / window.el
Created Jun 25, 2011
hook for switch to or creating windows in emacs
View window.el
;; advise the other-window function as a hook into switching windows
;; with C-x o
(defadvice other-window (after my-test-advice activate)
;; when creating or adding a window fire the hook
(add-hook 'window-configuration-change-hook 'my-super-awesome-function)
public class Lamp
private int bulbAge;
private String bulbType;
private int shadeAge;
public Lamp(int bulbAge, String bulbType, int shadeAge)
this.bulbAge = bulbAge;
You can’t perform that action at this time.