Skip to content

Instantly share code, notes, and snippets.

View peteonrails's full-sized avatar

Peter Jackson peteonrails

View GitHub Profile
@peteonrails
peteonrails / 20-chromebook-pixel.conf
Last active February 8, 2016 13:57
Config file for building the kernel in Arch linux mainline AUR
# /etc/X11/xorg.conf.d/20-chromebook-pixel.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
@adambair
adambair / v1
Created February 22, 2012 22:03
-------------------------------------------------------------
iIIIIIIIIIIIIIIi,
II 'IIi. Intridea, Inc
II 'Ii www.intridea.com
II iii II
II 'ii II Document Title Here
II II 12/05/2011 - 12/06/2011
II iii II
II. iii .II Adam Bair, Partner
@activestylus
activestylus / template_git.rb
Created January 18, 2010 17:18
Rails 3 Template: Git Setup
#----------------------------------------------------------------------------
# Git Setup
#----------------------------------------------------------------------------
file '.gitignore', <<-FILE
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
public/uploads/*
@zigzag
zigzag / i18n_extractor.rb
Created December 13, 2009 15:50
a handy tool for extract text from erb files for i18n
class I18nExtractor
SKIP_INLINE_TAG = [/<%(.*?)%>/,/<(.*?)>/,/<%(.*)$/,/^(.*)%>/]
SEPERATOR = '_@@@_'
SKIP_TAGS = [[/<script/i,/<\/script>/i],[/<%/,/%>/],[/<style/i,/\/style>/i]]
def initialize(filename)
p '-----------------------------------------'
p filename
p '-----------------------------------------'
@filename = filename