Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
Forked from olistik/gist:2627011
Created December 2, 2012 15:00
Show Gist options
  • Select an option

  • Save creativepsyco/4189215 to your computer and use it in GitHub Desktop.

Select an option

Save creativepsyco/4189215 to your computer and use it in GitHub Desktop.

Revisions

  1. creativepsyco revised this gist Dec 2, 2012. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -77,9 +77,9 @@ curl -Lo- http://bit.ly/janus-bootstrap | bash

    ```shell
    git config --global color.ui true
    git config --global user.name "Maurizio De Magnis"
    git config --global user.email "maurizio.demagnis@gmail.com"
    ssh-keygen -t rsa -C "maurizio.demagnis@gmail.com"
    git config --global user.name "Mohit Kanwal"
    git config --global user.email "mohit.kanwal@gmail.com"
    ssh-keygen -t rsa -C "mohit.kanwal@gmail.com"
    ```

    ```shell
    @@ -106,9 +106,9 @@ ssh -T git@github.com
    ## Postgres setup

    ```shell
    sudo -u postgres createuser --superuser olistik
    sudo -u postgres createuser --superuser mohit
    sudo -u postgres psql postgres
    postgres=# \password olistik
    postgres=# \password mohit

    createdb application_development
    ```
    @@ -122,9 +122,9 @@ bundle exec rails dbconsole

    ```shell
    cd
    pwd # /home/olistik
    pwd # /home/mohit
    mkdir projects
    id # uid=1000,gid=1000,...
    sudo echo "projects /home/olistik/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab
    sudo echo "projects /home/mohit/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab
    sudo mount projects
    ```
  2. Maurizio De Magnis revised this gist Oct 10, 2012. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions gistfile1.md
    Original 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
    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
    rvm install 1.9.3 --default
    ruby -v
    ```

  3. Maurizio De Magnis revised this gist Oct 6, 2012. 1 changed file with 15 additions and 2 deletions.
    17 changes: 15 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL
    ```

    ## ruby-build
    ### 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)
    ### 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
  4. Maurizio De Magnis revised this gist Sep 26, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.md
    Original 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
    ```

    ## Github configuration
    ## Git/Github configuration

    ```shell
    git config --global color.ui true
    git config --global user.name "Maurizio De Magnis"
    git config --global user.email "maurizio.demagnis@gmail.com"
    ssh-keygen -t rsa -C "maurizio.demagnis@gmail.com"
    @@ -88,6 +89,8 @@ ssh -T git@github.com
    * 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

  5. Maurizio De Magnis revised this gist May 7, 2012. 1 changed file with 46 additions and 9 deletions.
    55 changes: 46 additions & 9 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,57 +1,87 @@
    sudo apt-get install
    vim
    tmux
    git
    ## 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 "maurizio.demagnis@gmail.com"
    ssh-keygen -t rsa -C "maurizio.demagnis@gmail.com"
    ```

    sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc

    ```shell
    cat ~/.ssh/id_rsa.pub | clipboard
    ```

    ### add it to your [GitHub ssh account page](https://github.com/settings/ssh)
    * Add it to your [GitHub ssh account page](https://github.com/settings/ssh)

    * Test if it works:
    ```shell
    ssh -T git@github.com
    ```

    ## system dependencies for peculiar gems
    ## System dependencies for peculiar gems

    * nokogiri: libxml2-dev libxslt1-dev
    * pg: postgresql libpq-dev
    @@ -61,19 +91,26 @@ ssh -T git@github.com

    ## 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
    ```
  6. Maurizio De Magnis created this gist May 7, 2012.
    79 changes: 79 additions & 0 deletions gistfile1.md
    Original 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 "maurizio.demagnis@gmail.com"
    ssh-keygen -t rsa -C "maurizio.demagnis@gmail.com"

    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 git@github.com

    ## 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