Skip to content

Instantly share code, notes, and snippets.

View ryanjm's full-sized avatar

Ryan Mathews ryanjm

View GitHub Profile
@ryanjm
ryanjm / Setting up Linux
Created February 27, 2010 00:02
Simply customizing shell
I wanted to customize the linux box I have to log into.
First I changed my zsh profile:
In my .zshrc file:
PROMPT="[csil]%~%# "
In order to get zsh to load by default I found out which shell it was running:
echo $SHELL
$/bin/tcsh
@ryanjm
ryanjm / SSH Password
Created February 26, 2010 05:34
Shortcut for accessing ssh
I set up my ssh such that I don't have to put in the password every time and that I have a shortcut to get to the remote machine.
In this case I'm logging into a school computer named csil. So I made an alias:
alias csil='ssh csil'
This calls on ~/.ssh/config which looks like this:
Host csil
HostName address.to.remote.computer
User username
@ryanjm
ryanjm / Extra info
Created February 24, 2010 16:55
Issues with bad interpreter
Something else I found helpful along the way (as I had old stuff installed):
gem uninstall --install-dir /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 rails
@ryanjm
ryanjm / gist:307996
Created February 18, 2010 20:07
Installing Nokogiri
I had an issue with getting nokogiri working with various gems and plugins, such as
bundler. This is the steps I took to get it working. I've used macports on this
machine and I uninstalled it a few days, trying to use homebrew.
Uninstall all previous versions of nokogiri
If you're using brew then make sure you have libxml2 installed
brew install libxml2
Then create a sim link