<commit_before># thedeeno's ~/

### Install Common Packages

```sh
sudo apt-get install git-core git-gui gitg meld vim-gnome curl
sudo apt-get install build-essential bison openssl libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev libxslt-dev libxml2-dev 
```

### Install Ruby (and the environment manager)

clone rbenv + ruby-build

    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

install ruby prereqs

    # readline
    sudo apt-get install libreadline-dev

    # zlib
    sudo apt-get install libssl-dev zlib1g-dev

install rubies

    rbenv install 1.9.3-p327
    rbenv rehash

#### Install Dotfiles
git clone git://github.com/thedeeno/dotfiles ~/code/dotfiles 
cd ~/code/dotfiles
rake install

### Build / Install vim from source (to use latest plugins)

https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

1.  First, install all the prerequisite libraries, including Mercurial. For a Debian-like Linux distribution like Ubuntu, that would be the following:

        sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
        libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
        libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial

2. Once everything is installed, getting the source is easy:

        cd ~/code/
        hg clone https://code.google.com/p/vim/
        cd vim
        ./configure --with-features=huge \
                    --enable-rubyinterp \
                    --enable-pythoninterp \
                    --enable-perlinterp \
                    --enable-gui=gtk2 --enable-cscope --prefix=/usr
        make VIMRUNTIMEDIR=/usr/share/vim/vim73

3. Copy binary to PATH

       cp ~/code/vim/src/vim ~/bin/

#### Install Vundle (vim plugin manager)

  ```sh
  git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

  # from vim run
  :BundleInstall
  ```

#### Compile Plugins (downloaded with vundle)
  
  ```sh
  sudo apt-get install cmake python-dev
  cd ~/.vim/bundle/YouCompleteMe
  ./install.sh
  ```

### Setup Pry
  
  Install gems (or add to a project's gemfile):

  ```sh
  gem install pry pry-doc pry-debugger pry-stack_explorer awesome_print 
  gem install rails-env-switcher rspec-console cucumber-console commands
  ```

```ruby
group :development, :test do
  gem 'pry'
  gem 'pry-doc'
  gem 'pry-debugger'
  gem 'pry-stack_explorer'
  gem 'awesome_print'
  gem 'rails-env-switcher'
  gem 'rspec-console'
  gem 'cucumber-console'
  gem 'commands'
end
```

### Install Zsh

  ```sh
  sudo apt-get install zsh
  zsh
  # (optionally) set zsh as your default shell
  chsh -s $(which zsh)
  ```

# Symlink ack (ubuntu) (optional)

    sudo apt-get install ack-grep
    sudo ln -s /usr/bin/ack-grep /usr/local/bin/ack

`rake install` will symlink the appropriate files to your home directory. Everything is configured and tweaked within `dotfiles`.

### Install Solarized (theme)

### overwrite gnome color profiles with solarized light/dark

Create two new color profiles with gnome terminal's preferences gui
(it's not accessible from the command line).

    cd ~/code
    git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git
    cd gnome-terminal-colors-solarized
    ./install.sh

## Install Headless Browser (for testing)
### phantomjs

The latest instructions are [here](http://code.google.com/p/phantomjs/wiki/BuildInstructions), but the following should probably work:

```sh
sudo apt-get install libqt4-dev libqtwebkit-dev qt4-qmake
cd ~/code
git clone git://github.com/ariya/phantomjs.git && cd phantomjs
git checkout master # or whatever version you want
qmake-qt4 && make

## link it to your path<commit_msg>Reorganize readme<commit_after># thedeeno's ~/

### Install Common Packages

```sh
sudo apt-get install git-core git-gui gitg meld vim-gnome curl
sudo apt-get install build-essential bison openssl libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev libxslt-dev libxml2-dev 
```

#### Install Dotfiles

    git clone git://github.com/thedeeno/dotfiles ~/code/dotfiles 
    cd ~/code/dotfiles
    rake install

### Install Zsh

  ```sh
  sudo apt-get install zsh
  zsh
  # (optionally) set zsh as your default shell
  chsh -s $(which zsh)
  ```


### Install Ruby (and the environment manager)

clone rbenv + ruby-build

    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

install ruby prereqs

    # readline
    sudo apt-get install libreadline-dev

    # zlib
    sudo apt-get install libssl-dev zlib1g-dev

install rubies

    rbenv install 2.0.0-p247
    rbenv rehash

### Build / Install vim from source (to use latest plugins)

https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

1.  First, install all the prerequisite libraries, including Mercurial. For a Debian-like Linux distribution like Ubuntu, that would be the following:

        sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
        libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
        libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial

2. Once everything is installed, getting the source is easy:

        cd ~/code/
        hg clone https://code.google.com/p/vim/
        cd vim
        ./configure --with-features=huge \
                    --enable-rubyinterp \
                    --enable-pythoninterp \
                    --enable-perlinterp \
                    --enable-gui=gtk2 --enable-cscope --prefix=/usr
        make VIMRUNTIMEDIR=/usr/share/vim/vim73

3. Copy binary to PATH

       cp ~/code/vim/src/vim ~/bin/

#### Install Vundle (vim plugin manager)

  ```sh
  git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

  # from vim run
  :BundleInstall
  ```

#### Compile Plugins (downloaded with vundle)
  
  ```sh
  sudo apt-get install cmake python-dev
  cd ~/.vim/bundle/YouCompleteMe
  ./install.sh
  ```

### Setup Pry
  
  Install gems (or add to a project's gemfile):

  ```sh
  gem install pry pry-doc pry-debugger pry-stack_explorer awesome_print 
  gem install rails-env-switcher rspec-console cucumber-console commands
  ```

```ruby
group :development, :test do
  gem 'pry'
  gem 'pry-doc'
  gem 'pry-debugger'
  gem 'pry-stack_explorer'
  gem 'awesome_print'
  gem 'rails-env-switcher'
  gem 'rspec-console'
  gem 'cucumber-console'
  gem 'commands'
end
```

### Install Solarized (theme)

### overwrite gnome color profiles with solarized light/dark

Create two new color profiles with gnome terminal's preferences gui
(it's not accessible from the command line).

    cd ~/code
    git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git
    cd gnome-terminal-colors-solarized
    ./install.sh

## Install Headless Browser (for testing)
### phantomjs

The latest instructions are [here](http://code.google.com/p/phantomjs/wiki/BuildInstructions), but the following should probably work:

```sh
sudo apt-get install libqt4-dev libqtwebkit-dev qt4-qmake
cd ~/code
git clone git://github.com/ariya/phantomjs.git && cd phantomjs
git checkout master # or whatever version you want
qmake-qt4 && make

## link it to your path
{'fraction_non_alphanumeric': 0.10736238218822565, 'fraction_numerical': 0.008741975140008195, 'mean_word_length': 3.0054704595185995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1625016', 'n_tokens_mistral': 2579, 'n_tokens_neox': 2373, 'n_words': 701}