Skip to content

Instantly share code, notes, and snippets.

@eFrane
eFrane / .gitignore
Created February 27, 2011 13:01
Basic .gitignore for XCode 4 Projects
*.app
build/
.DS_Store
*~
.LSOverride
*.xcuserdatad
*.xcworkspace
@eFrane
eFrane / Ruby 1.9.1 on Ubuntu.md
Created February 3, 2011 10:33
Short log on how to get Ruby on Ubuntu running via rvm.
  1. get rvm from Begin Rescue End and install on a bash (requires curl):

    bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
    
  2. make rvm visible to the shell -> source rvm config into shell config

    # in .bashrc or .bash_profile
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  
    
  3. install required devel packages

@eFrane
eFrane / pre-commit.sh
Created February 1, 2011 18:40
Very basic pre-commit script to make some syntax checks before commiting
#!/bin/sh
#
# Very basic php syntax check using php -l
files=`git status --porcelain | grep " [MA] " | tr -d " MA" | grep -i ".\.php"`
for f in $files
do
php -l $f
if [ $? -gt 0 ]