Skip to content

Instantly share code, notes, and snippets.

View xml's full-sized avatar

Christian (Xian) Lilley xml

View GitHub Profile
@xml
xml / turt.sh
Last active April 13, 2018 23:42
Git: Catch Up Trunk and Rebase against Trunk
# Add these scripts to your .profile or .bash_profile or .zshrc, or wherever you shell-script
# (FWIW, I keep core scripts in my .profile, then import .profile into zsh or bash configs)
# PURPOSE:
# When developing, you want to develop a critical reflex/hygiene:
# keeping your working/feature branch updated against your trunk branch.
# But this takes time and attention, partly because your working branch can have an arbitrary name to remember/type.
# We want to "make the right thing the easy thing." (h/t: Mike Bland)
# These convenience scripts turn that process into a one-command operation.
@cee-dub
cee-dub / 1_install_transcript.sh
Created January 10, 2012 07:24
Installing Ruby 1.9.3 & gem dependencies on Mac OS X Lion
# Install Xcode from the Mac App Store
open /Applications/Install\ Xcode.app # complete the installation
# Install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
# Install RVM
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Install some libraries to link ruby and gems against