Brandn

My website

Sep 4th, 2008 @ 1:27 am

With a local only git repo, push to empty remote repo

Assuming you’ve already been working on your project locally and there’s no origin repo that you cloned from, rather than zip it and then unzip it on your server, create an empty repo on the server and push to it.

$ cd my_local_repo
$ git remote add origin remote_server:/remote/path/on/server.git
$ git push origin master

Aug 26th, 2008 @ 2:18 pm

Subdomained sites with Passenger - Just click the add button another time, add the same project folder and add the subdomain to the address. I’ve had problems with instant recognition, so sometime it helps to run sudo apachectl graceful so changes get picked up.

Subdomained sites with Passenger - Just click the add button another time, add the same project folder and add the subdomain to the address. I’ve had problems with instant recognition, so sometime it helps to run sudo apachectl graceful so changes get picked up.

@ 2:04 pm

Installing Passenger on OS X Leopard

$ sudo gem install passenger
$ sudo passenger-install-apache2-module

and then…

--------------------------------------------
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/local/bin/ruby

…or something like that

$ sudo vim /etc/apache2/httpd.conf

…or mate or nano, paste the code at the bottom…

$ sudo apachectl graceful

…then get the Mac OS X Preference Pane from the Fingertips blog

$ curl -O http://www.fngtps.com/files/2/2008/06/PassengerPrefPane-1.0.zip

…unzip and install it, add your apps. presto!

Apr 10th, 2008 @ 1:35 am

“less verbose, more consise”

Geoffrey Grosenbach

Apr 4th, 2008 @ 7:20 pm

“If you lend someone $20 and never see that person again, it was probably worth it.”

My Karma Blog  » Blog Archive  » Zen Sarcasm

Apr 3rd, 2008 @ 2:18 am

Copy file to stdout, pipe to clipboard

cat file | pbcopy

Mar 11th, 2008 @ 2:49 pm

“Would God be worthy to be worshipped, would you give your whole life to seeking a God that you can fully understand where you are at?”

Dave Stockton

Mar 8th, 2008 @ 1:46 am

Archive · RSS · Theme by Novembird