Skip to content

Instantly share code, notes, and snippets.

View cookiefission's full-sized avatar
🏳️‍🌈

Sean Kenny cookiefission

🏳️‍🌈
View GitHub Profile
@cookiefission
cookiefission / windup.sh
Created March 14, 2017 23:28
Make Security Irritating Again
cd() {
undef -f cd;
[ `ruby -rdate -e "puts (Date.today.day % 5)"` -eq 0 ] && sl;
cd $@;
}
@cookiefission
cookiefission / routes.rb
Last active April 7, 2016 12:05
Hack for url versioned routes in Rails.
Rails.application.routes.draw do
versioned do
resources :flights
end
# Using the `versioned` helper with v1/ v2/ and v3/ directories existing
# is equivalent to doing:
# namespace :v1 do
# resources :flights
# end
@cookiefission
cookiefission / template.rb
Created February 19, 2016 13:13
Rails application template for Rails 5.0. Includes bootstrap and rspec.
# Preferred Gemfile
run 'rm Gemfile'
file 'Gemfile', <<-GEMS
source 'https://rubygems.org'
gem 'rails', '>= 5.0.0.beta2', '< 5.1'
gem 'mysql2', '>= 0.3.18', '< 0.5'
gem 'puma'
@cookiefission
cookiefission / keybase.md
Created January 11, 2016 20:46
keybase.md

Keybase proof

I hereby claim:

  • I am cookiefission on github.
  • I am seankenny (https://keybase.io/seankenny) on keybase.
  • I have a public key whose fingerprint is 9D8F 8E4D C5FB 0438 78E8 331A 78EC B059 6D36 4FD6

To claim this, I am signing this object:

@cookiefission
cookiefission / Makefile
Last active August 29, 2015 14:00
Basic Makefile for 1 source file c programs
COMPILER = gcc
COMPILER_FLAGS = -Wall -g
RM = rm -f
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:%.c=%)
all: ${OBJECTS}