How To – Installing Ruby on Rails on Ubuntu Lucid Lynx 10.04 Server
Install required packages sudo apt-get install build-essential git-core zlib1g-dev libssl-dev libreadline5-dev The required packages for installing Ruby Enterprise, and Git thrown in for good measure. Install Ruby Enterprise Download ruby-enterprise-1.8.7-2010.02.tar.gz & Install wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz sudo ./ruby-enterprise-1.8.7-2010.02/installer May take a long time to get past the “Generating RI…” bit Also, ignore the “The following […]
In: How To · Tagged with: apache, capistrano, git, paperclip, phusion passenger, ruby enterprise, Ubuntu Lucid Lynx 10.04
what changes did I just pull from git?
Ever wanted to see what changes you just pulled from github? This little command will show you the changes for the last commit, if the pull resulted in more commits being pulled then add a couple more ‘^’s to HEAD^ git diff HEAD^ HEAD
In: Ruby on Rails · Tagged with: git
Git cherry-pick
cherry-pick is a useful Git command, especially if you are working in an Agile team. We used it for the first time today on our project. Team member A lets call him “James” made a feature and put it onto master. Team member B lets call him “Jordan” later refactered some code from “James”‘s feature. […]
In: Ruby on Rails · Tagged with: git
Git /usr/local/lib/liblber & /usr/local/lib/libldap_r no version information available error
I just updated my system today and rebooted (I like to reboot once a couple weeks…) and git started freeking out on me. I tried to git add ap [tab tab] but “git: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/libcurl-gnutls.so.4)” would pop up before the auto-complete and mess everything up. I could continue without […]
In: Server Config, Ubuntu Tricks · Tagged with: git
Can’t Access Github behind proxy or Firewall
Use corkscrew to get through the firewall. You will have to install it from source. website: http://www.agroman.net/corkscrew/ Now edit your ~/.ssh/config file, create it if you haven’t got one. > cat ~/.ssh/config Host gitproxy User git Hostname ssh.github.com Port 443 ProxyCommand /usr/local/bin/corkscrew proxy.example.com 3128 %h %p IdentityFile /home/jordan/.ssh/id_rsa Now use this proxy when cloning git
In: Server Config, Ubuntu Tricks, Web Development · Tagged with: corkscrew, git, github.com, http proxy, ssh
Ubuntu for the Win again – Meld Git Diff GUI
If you want to look at git diff ‘s through a gui on a linux machine then Meld fits the requirements nicely. I have only just found out about it but from first impressions it is rather good. Ubuntu 9.04 can just sudo apt-get install meld Will keep you posted.
In: Ubuntu Tricks · Tagged with: git, Meld
Rails Setup – Jaunty 9.04 – Postgres – RMagick – Xapian – Hpricot – Git
Just installed Ubuntu Jaunty 9.04 onto my laptop and wanted to note down all the installed packages I ended up using. I haven’t tested this on a clean install, but should all flow nicely. Hopefully will help me next time I fresh install. Will get you setup with rails and some useful libs and plugins. […]
In: Server Config · Tagged with: git, Hpricot, Jaunty 9.04, postgres, Rails, RMagick, Xapian
Pull A Git Branch from Remote
Up until lately I have been improperly pulling my remote branches to local. What I mean is I create a new branch locally, push it to remote (GitHub) then pull it onto a designers computer with the following command (this is not how to do it) #DON’T DO THIS git checkout -b < new_branch > […]
In: Uncategorized · Tagged with: checkout, git, Pull, Remote Branch