Skip to content

Instantly share code, notes, and snippets.

View shayfrendt's full-sized avatar

Shay Frendt shayfrendt

View GitHub Profile
@shayfrendt
shayfrendt / about.md
Created May 14, 2024 16:36 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
source "https://rubygems.org"
def rails3?
ENV["RAILS3"]
end
if rails3?
gem "rails", "3.0.20.github11"
else
gem "rails", "2.3.14.github50"
# Adapted from http://gist.github.com/31934
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
RED="\[\033[0;31m\]"
ORANGE="\[\033[0;33m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"

Intro to Git & GitHub Workshop

This is a class outline and basic lesson plan for teaching an abbreviated 3-hour introductory course.

Initially used at the Girl Develop It RDU meetup: http://meetup.com/Girl-Develop-It-RDU/events/103131462/

During this 3-hour course, we'll explore the foundations of Git and GitHub through practical every-day commands and processes.

Objectives

@shayfrendt
shayfrendt / gist:1503580
Created December 20, 2011 22:27 — forked from wayneeseguin/gist:1503575
SM Framework PostgreSQL Extension Set

Install PostgreSQL Extension Set

[root@sl2 ~]# sm set install postgresql
  [✔] postgresql head                         

Replication

Setup

postgres@replica$ sm postgresql replication configure master 10.0.5.211 replica 10.0.5.212
@shayfrendt
shayfrendt / sample_postback_controller.rb
Created July 22, 2011 14:05
Sample Chargify Post-Back Controller
class Chargify::SubscriptionsController < ApplicationController
def update
subscription_ids = params['_json']
#Rails.logger.debug("SUB IDS: #{subscription_ids.inspect}")
begin
subscription_ids.each do |id|
# Process updated subscriptions here
Rails.logger.debug("SUB ID: #{id}")
end
respond_to do |format|
hey muness
class SummaryEmailsController < InheritedResources::Base
belongs_to :workday, :finder => :find_by_date!
actions :new, :create, :show
end
# Textmate essential bundles
cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
# mkdir -p cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
git clone git://github.com/protocool/ack-tmbundle.git Ack.tmbundle
git clone git://github.com/textmate/ruby-haml.tmbundle.git
git clone git://github.com/seaofclouds/sass-textmate-bundle.git "Ruby Saas.tmbundle"
git clone git://github.com/bmabey/cucumber-tmbundle.git Cucumber.tmbundle
git clone git://github.com/karnowski/blue-ridge-tmbundle.git JavaScript\ Blue\ Ridge.tmbundle
git clone git://github.com/johnmuhl/nginx-tmbundle.git nginx.tmbundle