Skip to content

Instantly share code, notes, and snippets.

View wilsoniya's full-sized avatar

Michael Wilson wilsoniya

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wilsoniya on github.
  • I am wilsoniya (https://keybase.io/wilsoniya) on keybase.
  • I have a public key ASBl0BFBFVdRn0fYSbolDTh2VuxJwx_ICyyya3MpBH7tfwo

To claim this, I am signing this object:

#!/usr/bin/env bash
# gh_open.sh
# ==========
# A little utility to open a web browser to the github page for a given file at
# an optional line number, taking into account current git revision. This
# script is handy in coordination with your favorite text editor. Ever look at
# some code and wish you could quickly send your buddy a URL of exactly what
# you're seeing? Just map gh_open.sh to a keyboard shortcut. For best results
# add gh_open.sh to a directory in your $PATH.
@wilsoniya
wilsoniya / batch_color
Created November 20, 2012 19:02
Batch color change
# mogrify - overwrite modified files
# -fill - the new color
# -opaque - the color to replace
# * - replace all in dir
mogrify -fill rgb\(0,150,250\) -opaque rgb\(20,53,63\) *