Skip to content

Instantly share code, notes, and snippets.

View mason-larobina's full-sized avatar

Mason Larobina mason-larobina

  • Western Australia
  • 07:08 (UTC +08:00)
View GitHub Profile
@mason-larobina
mason-larobina / new_bashrc.sh
Created August 11, 2012 13:46 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc
@mason-larobina
mason-larobina / rc.lua
Created August 6, 2012 15:19 — forked from johntyree/webview.lua
Set jQuery animation speed for all luakit:// pages from your luakit rc.lua
function webview.init_funcs.set_jquery_speed(view, w)
view:add_signal("load-status", function (view, status)
if status == "finished" and string.match(view.uri, "^luakit://") then
view:eval_js [=[ if ($) $.fx.speeds._default = 70; ]=]
end
end)
end
@mason-larobina
mason-larobina / pgp-merge-drv
Created April 25, 2012 17:36 — forked from ewa/pgp-merge-drv
Git merge driver to decrypt (and re-encrypt) files before merging.
#!/bin/bash
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ANCESTOR=$1
MINE=$2
OTHER=$3