Skip to content

Instantly share code, notes, and snippets.

View tibbon's full-sized avatar

David Fisher tibbon

View GitHub Profile
@tibbon
tibbon / gist:2569089
Created May 1, 2012 15:56
Git Repo Statistics commands
git log --shortstat | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'
git log --shortstat --author "David Fisher" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'
git log --pretty=format:%an | awk '{ ++c[$0]; } END { for(cc in c) printf "%5d %s\n",c[cc],cc; }'| sort -r
git shortlog -sn --no-merges
git log --graph --full-history --all --color \
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"

Keybase proof

I hereby claim:

  • I am tibbon on github.
  • I am tibbon (https://keybase.io/tibbon) on keybase.
  • I have a public key whose fingerprint is 88AE 0759 FBF3 36DD 30EC 92D3 7C62 5A2C C913 3124

To claim this, I am signing this object:

@tibbon
tibbon / sublimehints.md
Created October 31, 2013 18:36
Sublime Hints of the Day

David's Sublime Hints

Hint 1 - Set default indentation to 2 spaces

A tab size of 2 almost always looks better and can fit more on screen

  • Click on Sublime Text -> Preferences -> Settings - User
  • Alter the file to add "tab_size: 2" and save it

Mine looks like the following:

@tibbon
tibbon / readme.md
Created November 26, 2013 19:16
Markdown for Readmes

This is a big headers

This is a smaller header

This is a list:

  • Item 1
  • Item 2
  • Item 3

Or like this:

@tibbon
tibbon / gist:7585992
Created November 21, 2013 17:32
Resque fix
# Update Gemfile
gem "resque", "~> 2.0.0.pre.1", github: "KNEIP/resque"
bundle install
bundle update
resque work
@tibbon
tibbon / README.md
Created October 26, 2013 18:38 — forked from nikcub/README.md
@tibbon
tibbon / README.md
Created October 12, 2013 17:30 — forked from nikcub/README.md
@tibbon
tibbon / checklist.md
Created October 4, 2013 14:50
Ruby Week 1-2 Checklist

Week 1-2 Ruby Checklist

Must Haves:

Built-In Basic Datatypes:

  • Boolean
  • String
  • Fixnum
  • Float
@tibbon
tibbon / gist:6800776
Created October 2, 2013 21:27
RSpec Reading
https://github.com/rspec/rspec
http://www.codeschool.com/courses/testing-with-rspec
http://en.wikipedia.org/wiki/RSpec
http://rspec.info/
https://relishapp.com/rspec/rspec-core/docs
http://betterspecs.org/