Laptop is a set of scripts to get your laptop set up as a development machine.
Shell
Pull request Compare This branch is 6 commits ahead, 277 commits behind thoughtbot:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
mac
ruby
ubuntu

README.md

Laptop

Laptop is a set of scripts to get your laptop set up as a development machine.

Mac OS X

First, install GCC for OS X. (requires OS X 10.6 or higher)

Then, run this one-liner:

bash < <(curl -s https://raw.github.com/Jetstar/laptop/master/mac)

Ubuntu

First, install Ubuntu.

Then, run this one-liner:

bash < <(curl -s https://raw.github.com/Jetstar/laptop/master/ubuntu)

Postgres post install

If this is your first install, create a database with:

initdb /usr/local/var/postgres

If this is your first install, automatically load on login with:

mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist

If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:

launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist

Or start manually with:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

And stop with:

pg_ctl -D /usr/local/var/postgres stop -s -m fast

Miscellaneous set up

Get some dotfiles, or try dotfiles from Ryan Bates if you don't have your own.

Install MacVim

Install KeePass

What it sets up

  • SSH public keys (for authenticating with services like Github and EngineYard)
  • Homebrew or apt-get (for managing operating system libraries)
  • Ack (for finding things in files)
  • Tmux (for saving project state and switching between projects)
  • Postgres (for storing relational data)
  • ImageMagick (for cropping and resizing images)
  • RVM (for managing versions of the Ruby programming language)
  • Ruby 1.9.2 stable (for writing general-purpose code)
  • Bundler gem (for managing Ruby libraries)
  • Hitch gem (for sharing the love)
  • Taps gem (for pushing and pulling SQL databases between environments)
  • Postgres gem (for making Ruby talk to SQL databases)

It should take about 30 minutes for everything to install, depending on your machine.