Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 93 lines (68 sloc) 4.034 kB
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored
1 #!/usr/bin/env bash
2
e5397eb @eladmeidar [FIX] preparing for first run
authored
3 echo "Create an encrypted image to store your codez in"
4 hdiutil create -size 20g -fs HFS+J -encryption AES-128 -stdinpass ~/Documents/fiverr-dev-test.dmg
5
a59b8ca @r00k Fix da words.
r00k authored
6 echo "Checking for SSH key, generating one if it doesn't exist ..."
ce0b76b @croaky trying to get this down to a one-liner
croaky authored
7 [[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
ee5fd2f @jyurek Generate SSH keys if you don't have them.
jyurek authored
8
36341ff @cbrauchli Don't need to explicitly install Bundler because it's a dependency of…
cbrauchli authored
9 echo "Copying public key to clipboard. Paste it into your Unfuddle account ..."
ee5fd2f @jyurek Generate SSH keys if you don't have them.
jyurek authored
10 [[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
bf60fca @croaky move ssh key generation to first step so people can be setting up the…
croaky authored
11
256329f don't need to install git, a very recent version comes with lion
Dan Croak authored
12 echo "Installing Homebrew, a good OS X package manager ..."
047231e @croaky use newer official recommendation for installing homebrew. includes /…
croaky authored
13 /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
ee5fd2f @jyurek Generate SSH keys if you don't have them.
jyurek authored
14 brew update
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored
15
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
16 echo "Install Git, no other way to source control"
17 brew install git
18
19 echo "Installing WGET, downloading files made easy"
20 brew install wget
21
256329f don't need to install git, a very recent version comes with lion
Dan Croak authored
22 echo "Installing Redis, a good key-value database ..."
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored
23 brew install redis
24
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
25 echo "Installing MongoDB, an awesome fast database ..."
26 brew install mongodb
27
28 echo "Installing Memcached, a caching server"
29 brew install memcached
30
31 echo "Install Sphinx, a full text search engine for MySQL"
e5397eb @eladmeidar [FIX] preparing for first run
authored
32 brew install sphinx --with-mysql
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
33
983b4fb @croaky install pg gem
croaky authored
34 echo "Installing ack, a good way to search through files ..."
2e36b42 @croaky adding ack, fixing missing commands
croaky authored
35 brew install ack
36
531645d @croaky install tmux, too
croaky authored
37 echo "Installing tmux, a good way to save project state and switch between projects ..."
38 brew install tmux
39
983b4fb @croaky install pg gem
croaky authored
40 echo "Installing ImageMagick, good for cropping and re-sizing images ..."
fc2143f @croaky mac is now a shell script. both mac & ubuntu now install ruby 1.9.2-p…
croaky authored
41 brew install imagemagick
42
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
43 echo "Downloading Sublime Editor 2, the best editor out there for Rails"
44 cd ~/Downloads
45 mkdir FiverrSetup
46 cd FiverrSetup
47 wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202%20Build%202139.dmg
48 hdiutil mount Sublime%20Text%202%20Build%202139.dmg
351f17a @eladmeidar [FIX] preparing for first run
authored
49 cp -R "/Volumes/Sublime Text 2/Sublime Text 2.app" /Applications
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
50 hdiutil unmount "/Volumes/Sublime Text 2/"
51
52 echo "Downloading iTerm2, a better terminal for mac"
53 cd ~/Downloads/FiverrSetup
54 wget http://iterm2.googlecode.com/files/iTerm2-1_0_0_20111020.zip
55
56 echo "Downloading MySQL, the world's most common database"
57 cd ~/Downloads/FiverrSetup
58 wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.58-osx10.6-x86_64.dmg/from/http://mysql.spd.co.il/
59 hdiutil mount mysql-5.1.58-osx10.6-x86_64.dmg
60
61 sudo installer -pkg /Volumes/mysql-5.1.58-osx10.6-x86_64/mysql-5.1.58-osx10.6-x86_64.pkg -target "/Volumes/Macintosh HD"
62
63 sudo installer -pkg /Volumes/mysql-5.1.58-osx10.6-x86_64/MySQLStartupItem.pkg -target "/Volumes/Macintosh HD"
64
65 sudo cp /Volumes/mysql-5.1.58-osx10.6-x86_64/MySQL.prefPane /Users/`whoami`/Library/PreferencePanes/
66 hdiutil unmount "/Volumes/mysql-5.1.58-osx10.6-x86_64/"
67
68 echo "Downloading MySQL Workbench, a GUI tool for MySQL"
69 cd ~/Downloads/FiverrSetup
70 wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-gpl-5.2.34-osx-i686.dmg/from/http://mysql.spd.co.il/
71
72 echo "Downloading VirtuaBox, virtualization tool"
73 cd ~/Downloads/FiverrSetup
74 wget http://download.virtualbox.org/virtualbox/4.1.8/VirtualBox-4.1.8-75467-OSX.dmg
75 hdiutil mount VirtualBox-4.1.8-75467-OSX.dmg
76 installer_file=`ls /Volumes/VirtualBox/ -1 | grep mpkg`
77 sudo installer -pkg /Volumes/VirtualBox/$installer_file -target "/Volumes/Macintosh HD"
78 hdiutil unmount "/Volumes/VirtualBox/"
79
e5397eb @eladmeidar [FIX] preparing for first run
authored
80 echo "Setting up bash scripts"
81 curl -s https://raw.github.com/gist/c8cee784891358b5d38c/e25416aca463c9ad55e42a1583b1e0fa1aceac25/bash_profile.bash | sed "s/eladmeidar/`whoami`/g" > ~/.bash_profile
82 curl -s https://gist.github.com/raw/06e18dee2c5d97a0ae6b/fe93747c93a7b65f4657b56ef3962d64b48e3eb7/bash_completion.bash > ~/.git-completion.bash
83 source ~/.bash_profile
84
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
85 echo "Installing RVM (Ruby Version Manager) ... (you might want to skip the first downloading source by Cmd+C, second one is faster)"
86 bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
3d77620 @croaky correctly echo newlines into ~/.zshrc
croaky authored
87 echo "
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
88 # RVM safe scripts - on top you'll see the default scripts either one should work
89 [[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
90 source ~/.bash_profile
d40b854 @croaky add rvm function to ~/.zshrc and source ~/.zshrc after installing rvm
croaky authored
91
5885ed1 @eladmeidar [FEAT] adding more stuff
authored
92 bash < <(curl -s https://raw.github.com/eladmeidar/laptop/master/ruby)
Something went wrong with that request. Please try again.