Skip to content

Instantly share code, notes, and snippets.

View tibbon's full-sized avatar

David Fisher tibbon

View GitHub Profile
@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 / 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 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/
# User seed
u1 = User.create(name: "Taylor Hollis", profile_image_url: 'http://images.wikia.com/warhammer40kfanon/images/0/05/Jackie-chan-meme.jpg')
u2 = User.create(name: "Randy Lacey", profile_image_url: 'http://www.webmasternerd.com/wp-content/uploads/2013/08/2.jpg')
u3 = User.create(name: "Cary Ocean", profile_image_url: 'http://weknowmemes.com/wp-content/uploads/2011/10/great-scott-doc-back-to-the-future-drawing.jpg')
u4 = User.create(name: "Sam Skyler", profile_image_url: 'http://wallgood.com/wp-content/uploads/2013/07/Forever-Alone-Meme-Template.jpg')
u5 = User.create(name: "Sal Rowan", profile_image_url: 'http://3.bp.blogspot.com/-3LSV-ioauvU/UPnPspEglDI/AAAAAAAAAJY/cuIC5kBIJA8/s200/meme-faces_00040376.jpg')
# Item seed
i1 = Product.create( name: "The Mountain Three Wolf Moon Short Sleeve Tee",
description: "Hand dyed shirt featuring a stunning screen print of 3 wolves howling at a moon on a preshrunk, 100% cotton tee dyed and printed by the mountain.")
# config/unicorn.rb
worker_processes 3
timeout 30
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
@tibbon
tibbon / gist:6252153
Created August 16, 2013 18:10
My recent history
756 rails _3.2.13_ new raffler
757 cd raffler/
758 git status
759 ls
760 rails g controller main index --skip-javascript
761 rm app/assets/javascripts/main.js.coffee
762 subl .
763 git add .
764 git commit -m "Ran controller generator to create Main controller with an action of Index. Added Loading text to app views main index"
765 git add .