-
-
Save techapj/7088358 to your computer and use it in GitHub Desktop.
Revisions
-
olistik revised this gist
Oct 20, 2013 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL ``` ### latest ruby (2.0.0-p247) * Install the pre-requisites: ```shell @@ -44,8 +44,8 @@ sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev * Install the interpreter: ```shell rbenv install 2.0.0-p247 rbenv global 2.0.0-p247 ruby -v ``` @@ -56,8 +56,8 @@ ruby -v sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl -L https://get.rvm.io | bash -s stable exec $SHELL rvm install ruby rvm use ruby --default ruby -v ``` @@ -66,7 +66,7 @@ ruby -v echo "gem: --no-ri --no-rdoc" > ~/.gemrc ``` * Install the latest rails (4.0.0): ```shell gem i bundler rails ``` -
Maurizio De Magnis revised this gist
Mar 9, 2013 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,8 @@ ruby -v sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl -L https://get.rvm.io | bash -s stable exec $SHELL rvm install 2.0.0 rvm use 2.0.0 --default ruby -v ``` @@ -65,7 +66,7 @@ ruby -v echo "gem: --no-ri --no-rdoc" > ~/.gemrc ``` * Install the latest rails (3.2.12): ```shell gem i bundler rails ``` -
Maurizio De Magnis revised this gist
Mar 9, 2013 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Ubuntu 12.10 setup ([rbenv](https://github.com/sstephenson/rbenv)/[RVM](https://github.com/wayneeseguin/rvm), [Janus](https://github.com/carlhuda/janus), [PostgreSQL](http://www.postgresql.org/)) ## Basic pre-requisites @@ -13,9 +13,9 @@ sudo apt-get install xclip echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc ``` You can use [rbenv](https://github.com/sstephenson/rbenv) OR [RVM](https://github.com/wayneeseguin/rvm), they're mutually exclusive. Feel free to choose the one that fits your needs. ## [rbenv](https://github.com/sstephenson/rbenv) ```shell cd @@ -49,7 +49,7 @@ rbenv global 1.9.3-p194 ruby -v ``` ## [RVM](https://github.com/wayneeseguin/rvm) * install the pre-requisites: ```shell @@ -70,7 +70,7 @@ echo "gem: --no-ri --no-rdoc" > ~/.gemrc gem i bundler rails ``` ## [Janus](https://github.com/carlhuda/janus) (vim) ```shell sudo apt-get install curl @@ -108,7 +108,7 @@ ssh -T [email protected] * curb: libcurl4-gnutls-dev * rmagick: graphicsmagick-libmagick-dev-compat libmagickwand-dev ## [PostgreSQL](http://www.postgresql.org/) setup ```shell sudo -u postgres createuser olistik -
Maurizio De Magnis revised this gist
Mar 9, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ * Some utilities: ```shell sudo apt-get install vim tmux git curl ``` * Copy/paste from the command line: @@ -53,7 +53,7 @@ ruby -v * install the pre-requisites: ```shell sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl -L https://get.rvm.io | bash -s stable exec $SHELL rvm install 1.9.3 --default -
Maurizio De Magnis revised this gist
Jan 25, 2013 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -111,11 +111,12 @@ ssh -T [email protected] ## Postgres setup ```shell sudo -u postgres createuser olistik sudo -u postgres psql postgres=# \password olistik postgres=# create database myapp_development; CREATE DATABASE postgres=# grant all privileges on database myapp_development to olistik; ``` ```shell -
Maurizio De Magnis revised this gist
Jan 22, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # Ubuntu 12.10 setup (rbenv/rvm, janus, postgres) ## Basic pre-requisites * Some utilities: -
Maurizio De Magnis revised this gist
Jan 22, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -104,6 +104,7 @@ ssh -T [email protected] * sqlite3: sqlite3 libsqlite3-dev * capybara-webkit: libqt4-dev g++ * curb: libcurl4-gnutls-dev * rmagick: graphicsmagick-libmagick-dev-compat libmagickwand-dev ## Postgres setup -
Maurizio De Magnis revised this gist
Dec 7, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,8 @@ sudo apt-get install xclip echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc ``` You can use rbenv OR rvm, they're mutually exclusive. Feel free to choose the one that fits your needs. ## rbenv ```shell -
Maurizio De Magnis revised this gist
Oct 10, 2012 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,10 +51,8 @@ ruby -v ```shell sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl -L https://get.rvm.io | bash -s stable exec $SHELL rvm install 1.9.3 --default ruby -v ``` -
Maurizio De Magnis revised this gist
Oct 6, 2012 . 1 changed file with 15 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL ``` ### ruby-build ```shell mkdir -p ~/.rbenv/plugins @@ -31,7 +31,7 @@ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL ``` ### latest ruby (1.9.3-p194) * Install the pre-requisites: ```shell @@ -45,6 +45,19 @@ rbenv global 1.9.3-p194 ruby -v ``` ## RVM * install the pre-requisites: ```shell sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config curl -L https://get.rvm.io | bash -s stable echo '[[ -s "/home/olistik/.rvm/scripts/rvm" ]] && source "/home/olistik/.rvm/scripts/rvm"' >> ~/.bashrc exec $SHELL rvm pkg install readline rvm install 1.9.3 --with-readline-dir=$rvm_path/usr ruby -v ``` * Don't require rdoc and ri when installing gems: ```shell echo "gem: --no-ri --no-rdoc" > ~/.gemrc -
Maurizio De Magnis revised this gist
Sep 26, 2012 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,9 +62,10 @@ sudo apt-get install curl curl -Lo- http://bit.ly/janus-bootstrap | bash ``` ## Git/Github configuration ```shell git config --global color.ui true git config --global user.name "Maurizio De Magnis" git config --global user.email "[email protected]" ssh-keygen -t rsa -C "[email protected]" @@ -88,6 +89,8 @@ ssh -T [email protected] * rails related: nodejs * mysql: mysql-server mysql-client libmysqlclient-dev * sqlite3: sqlite3 libsqlite3-dev * capybara-webkit: libqt4-dev g++ * curb: libcurl4-gnutls-dev ## Postgres setup -
Maurizio De Magnis revised this gist
May 7, 2012 . 1 changed file with 46 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,57 +1,87 @@ ## Basic pre-requisites * Some utilities: ```shell sudo apt-get install vim tmux git ``` * Copy/paste from the command line: ```shell sudo apt-get install xclip echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc ``` ## rbenv ```shell cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL ``` ## ruby-build ```shell mkdir -p ~/.rbenv/plugins cd ~/.rbenv/plugins git clone git://github.com/sstephenson/ruby-build.git echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL ``` ## latest ruby (1.9.3-p194) * Install the pre-requisites: ```shell sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev ``` * Install the interpreter: ```shell rbenv install 1.9.3-p194 rbenv global 1.9.3-p194 ruby -v ``` * Don't require rdoc and ri when installing gems: ```shell echo "gem: --no-ri --no-rdoc" > ~/.gemrc ``` * Install the latest rails (3.2.3): ```shell gem i bundler rails ``` ## janus (vim) ```shell sudo apt-get install curl curl -Lo- http://bit.ly/janus-bootstrap | bash ``` ## Github configuration ```shell git config --global user.name "Maurizio De Magnis" git config --global user.email "[email protected]" ssh-keygen -t rsa -C "[email protected]" ``` ```shell cat ~/.ssh/id_rsa.pub | clipboard ``` * Add it to your [GitHub ssh account page](https://github.com/settings/ssh) * Test if it works: ```shell ssh -T [email protected] ``` ## System dependencies for peculiar gems * nokogiri: libxml2-dev libxslt1-dev * pg: postgresql libpq-dev @@ -61,19 +91,26 @@ ssh -T [email protected] ## Postgres setup ```shell sudo -u postgres createuser --superuser olistik sudo -u postgres psql postgres postgres=# \password olistik createdb application_development ``` ```shell bundle exec rails dbconsole # pass ``` ## Shared folder setup (virtualbox) ```shell cd pwd # /home/olistik mkdir projects id # uid=1000,gid=1000,... sudo echo "projects /home/olistik/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab sudo mount projects ``` -
Maurizio De Magnis created this gist
May 7, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,79 @@ sudo apt-get install vim tmux git ## rbenv cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL ## ruby-build mkdir -p ~/.rbenv/plugins cd ~/.rbenv/plugins git clone git://github.com/sstephenson/ruby-build.git echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL ## latest ruby (1.9.3-p194) sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev rbenv install 1.9.3-p194 rbenv global 1.9.3-p194 ruby -v echo "gem: --no-ri --no-rdoc" > ~/.gemrc gem i bundler rails ## janus (vim) sudo apt-get install curl curl -Lo- http://bit.ly/janus-bootstrap | bash ## Github configuration git config --global user.name "Maurizio De Magnis" git config --global user.email "[email protected]" ssh-keygen -t rsa -C "[email protected]" sudo apt-get install xclip echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc cat ~/.ssh/id_rsa.pub | clipboard ### add it to your [GitHub ssh account page](https://github.com/settings/ssh) ssh -T [email protected] ## system dependencies for peculiar gems * nokogiri: libxml2-dev libxslt1-dev * pg: postgresql libpq-dev * rails related: nodejs * mysql: mysql-server mysql-client libmysqlclient-dev * sqlite3: sqlite3 libsqlite3-dev ## Postgres setup sudo -u postgres createuser --superuser olistik sudo -u postgres psql postgres postgres=# \password olistik createdb application_development bundle exec rails dbconsole # pass ## Shared folder setup (virtualbox) cd pwd # /home/olistik mkdir projects id # uid=1000,gid=1000,... sudo echo "projects /home/olistik/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab sudo mount projects