Skip to content

Instantly share code, notes, and snippets.

View jrob00's full-sized avatar

Jason Roberts jrob00

  • Simi Valley, CA
View GitHub Profile
@jrob00
jrob00 / gist:8593368
Created January 24, 2014 07:16
Install ruby, rubygems on CentOS 5
yum install ruby
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm
yum install rubygems
@jrob00
jrob00 / gist:6143229
Last active December 20, 2015 13:59
User profile extension that allows you to execute "subl" in a project's root folder and have it automatically open the project file if such a file exists. This script looks in the current directory and in a hard coded location in case that's where you store all your project files.
# sublime text alias
function project_aware_subl() {
current_directory=${PWD##*/}
result=$(ls *.sublime-project 2>/dev/null | head -n 1)
if [ -z $result ]; then
result=$(ls ~/Documents/Sublime/${current_directory}.sublime-project 2>/dev/null | head -n 1)
result=$(printf '%q' "$result")
@jrob00
jrob00 / gist:6031505
Created July 18, 2013 18:02
Base Markup
<div id="siteContent">
<header id="headerContent">
<div class="branding">
<h1>Anthem</h1>
<h2>Church</h2>
</div>
<nav class="pageNav">
<ul>
<li>connect</li>
@jrob00
jrob00 / gist:5761530
Created June 11, 2013 23:01
JSON API Response
rails g scaffold User
username:string
password:string
first_name:string
last_name:string
is_archived:boolean
rails g scaffold User username:string password:string first_name:string last_name:string is_archived:boolean
@jrob00
jrob00 / .gitignore
Last active December 18, 2015 04:29
Rails .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
@jrob00
jrob00 / gist:5726193
Created June 7, 2013 00:22
Gemfile Bootstrap
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.rc1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0.rc1'
@jrob00
jrob00 / gist:3456930
Created August 24, 2012 23:07
Clear DNS cache in Mac OSX 10.7 and 10.8
sudo killall -HUP mDNSResponder
@jrob00
jrob00 / gist:3224415
Created August 1, 2012 07:10
Fixing PostFix for Mountain Lion
http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/
@jrob00
jrob00 / gist:3221572
Created July 31, 2012 23:07
Prep local Mac install for /var... Sites location
sudo mkdir -p /var/www/log/customer-billing
sudo mkdir -p /var/www/log/recurring-donation-billing
sudo chown -R jason /var/www/log/
@jrob00
jrob00 / gist:3125225
Created July 16, 2012 21:34
Font weight mappings
** 500 and down round down **
100 Thin
200 Ultra Light
200 Extra Light
300 Light
400 Book