Skip to content

Instantly share code, notes, and snippets.

Hackety hack

Chris Cummer senorprogrammer

Hackety hack
Block or report user

Report or block senorprogrammer

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
function switchgo() {
if [ -z $version ]; then
echo "Usage: switchgo [version]"
if ! command -v "go$version" > /dev/null 2>&1; then
echo "version does not exist, download with: "
echo " go get${version}"
senorprogrammer /
Last active Mar 13, 2019
Mount Drobo on Raspberry Pi

On the Drobo

  1. Install the NFS app.

  2. In your Drobo Dashboard, under "Share Settings", make sure the directory you want to share is accessible to "Everyone".

On the Raspberry Pi

  1. Create a mount point: mkdir Common, where "Common" is the name of the directory you want to share (could be "Downloads", "raspi", whatever you want; I used "Common").
senorprogrammer /
Last active Sep 16, 2018
Installing Go 1.10 on RaspberryPi
# A condensation of the instructions found here:
# For Bash, replace all `.zshrc` with `.bashrc`
sudo tar -C /usr/local -xvf go1.10.4.linux-armv6l.tar.gz
cat >> ~/.zshrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
View HappierNews
This custom stylesheet slims down HackerNews ( to the bare, useful essentials.
#hnmain .votelinks {
padding-left: 2px;
padding-right: 4px;
#hnmain {


git log --date=format:"%b %d, %Y" --pretty=format:"%Cgreen %h %C(white) %s %C(dim)%an on %cd"


29049a70 [CORE-607] Add specs for the okcomputer health checks Chris Cummer on Jun 13, 2017

Imagine the text above has pretty colors in it.


Keybase proof

I hereby claim:

  • I am senorprogrammer on github.
  • I am chriscummer ( on keybase.
  • I have a public key whose fingerprint is 2685 5FD1 72BE FE6C 75E4 CBA9 DF5A B430 FA4E AE8F

To claim this, I am signing this object:

senorprogrammer / gist:7123977
Last active Dec 26, 2015
Whether or not Pathname + Dir on jRuby behaves differently than in MRI
View gist:7123977

Test code (run from the Documents directory of a standard OS X user account).

d ='Pictures')

pn =

dir = pn.children.find { |child| && child.basename.to_s == 'GoPro' }
puts dir.inspect

JRuby 1.7.5 result:

senorprogrammer /
Created Mar 31, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
View reservation_states.txt
pending => cancelled
=> confirmed => completed => refunded
=> transaction_pending =>transaction_declined
=> denied
=> expired
=> customer_cancelled_pending
senorprogrammer / rails_precommit.rb
Created Nov 22, 2011
Pre-commit hooks for Rails projects
View rails_precommit.rb
#!/usr/bin/env ruby
# Pre-commit hooks to check the code for errant syntax issues, like logging messages, etc.
# Chris Cummer
# Check to see if I've left any debugging lines in the ruby files
def check_for_ruby_debug( flag )
run_cmd( flag, "grep -rls 'puts \">>' ../../app/**/*.rb", "Debug puts found in:" )
You can’t perform that action at this time.