Skip to content

Instantly share code, notes, and snippets.

View colindean's full-sized avatar
🏆
Helping others find happiness and serenity

Colin Dean colindean

🏆
Helping others find happiness and serenity
View GitHub Profile
@colindean
colindean / homebrew_rubocop_results-cfc7042.txt
Created March 8, 2014 13:50
Results of running Rubocop on Homebrew as of rev cfc7042
This file has been truncated, but you can view the full file.
Inspecting 2924 files
WCCC.C.C.WWCWCCWCWCWWCCCCCCCCCCWCCCWCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCWCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCWCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWWCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCWCCC
@colindean
colindean / transcript
Created March 15, 2014 20:57
Error when running WD My Cloud app on OS X Mavericks
$ /Applications/WD\ My\ Cloud/WD\ My\ Cloud.app/Contents/MacOS/WD\ My\ Cloud ; exit;
2014-03-15 16:55:43.951 WD My Cloud[3418:507] CoreText performance note: Client called CTFontCreateWithName() using name "Times Roman" and got font with PostScript name "Times-Roman". For best performance, only use PostScript names when calling this API.
2014-03-15 16:55:43.952 WD My Cloud[3418:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
logout
$ gem install poppler
Building native extensions. This could take a while...
ERROR: Error installing poppler:
ERROR: Failed to build gem native extension.
/Users/cdean/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
@colindean
colindean / keybase.md
Created May 17, 2014 21:31
keybase.md

Keybase proof

I hereby claim:

  • I am colindean on github.
  • I am colindean (https://keybase.io/colindean) on keybase.
  • I have a public key whose fingerprint is 8298 ED34 3ECA 2B1C 5156 B81D 158B 991E C280 8780

To claim this, I am signing this object:

@colindean
colindean / list
Created May 17, 2014 21:59
Simple tool for turning a space-delimited list of things into a newline list, primarily for use in bash for loops
#!/bin/sh
ALL_ARGS=$@
echo $ALL_ARGS | tr -s ' ' '\n'
@colindean
colindean / phoenix.js
Created June 10, 2014 02:52
Zephyros/Phoenix/Hydra configurations
// originally from https://gist.github.com/sdegutis/7756583
var mash = ["cmd", "alt", "ctrl"];
var mashShift = ["cmd", "alt", "shift"];
var MARGIN_X = 5;
var MARGIN_Y = 5;
var GRID_WIDTH = 3;
Window.prototype.getGrid = function() {
@colindean
colindean / gist:5f7944665b2df1f066b4
Created August 8, 2014 15:27
OneName.io verification
Verifying myself: My Bitcoin username is +colindean. https://onename.io/colindean
@colindean
colindean / get_cargo.sh
Last active August 29, 2015 14:05
Updates Cargo nightly on OSX
#!/bin/bash
# get this with:
#
# curl -O https://gist.githubusercontent.com/colindean/6b829b0f905dd96e4248/raw/get_cargo.sh
# chmod +x get_cargo.sh
#
triple=x86_64-apple-darwin
curl -O http://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz
@colindean
colindean / list_industry_identifiers.rb
Created September 8, 2014 02:34
List Industry Identifiers from Google Books API
#!/usr/bin/env ruby
# first arg must be a file in the format
#
# name identifier
#
# where name is just something for you and the identifier is an ISBN-10, ISBN-13,
# or something else that Google's API understands.
require 'json'
@colindean
colindean / get_scala_koans.sh
Created September 12, 2014 19:14
Downloads the latest version of the Scala Koans and puts them into scala-koans in the current directory.
#!/bin/bash
TARGET_DIR="`pwd`/scala-koans"
ZIP_FILE=koans.zip
wget https://bitbucket.org/dmarsh/scalakoansexercises/get/tip.zip -O "${ZIP_FILE}"
unzip -q "${ZIP_FILE}"
mkdir -p "${TARGET_DIR}"
cp -r *scalakoansexercises*/* "${TARGET_DIR}/"
rm -rf *scalakoansexercises* "${ZIP_FILE}"
echo "Scala Koans are available in ${TARGET_DIR}."