Skip to content

Instantly share code, notes, and snippets.

@edymerchk
Last active August 29, 2015 13:56
Show Gist options
  • Save edymerchk/9229732 to your computer and use it in GitHub Desktop.
Save edymerchk/9229732 to your computer and use it in GitHub Desktop.

Revisions

  1. edymerchk revised this gist Apr 2, 2014. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -80,12 +80,14 @@ make

    It is a good idea to copy both the Redis server than the command line interface in proper places using the following commands:

    sudo cp redis-server /usr/local/bin/
    sudo cp redis-cli /usr/local/bin/

    sudo cp src/redis-server /usr/local/bin/
    sudo cp src/redis-cli /usr/local/bin/


    now you can start redis server executing: redis-server

    If you want to install Redis more properly, please go to http://redis.io/topics/quickstart and follow the steps in the 'Installing Redis more properly' section




  2. edymerchk revised this gist Apr 2, 2014. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,12 @@ sudo add-apt-repository ppa:webupd8team/sublime-text-2
    sudo apt-get update
    sudo apt-get install sublime-text

    Now that you have Sublime text 2 installed, maybe its a good idea to install package manager, just open the console using ctrl+` shortcut or the View > Show Console menu and paste this python code:

    import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

    If you have problems, refers to this link https://sublime.wbond.net/installation#st2


    Redis

  3. edymerchk revised this gist Apr 2, 2014. 1 changed file with 13 additions and 3 deletions.
    16 changes: 13 additions & 3 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ Installation guide for Ruby stack in Ubuntu (Work In Progress)
    Open your terminal and copy and paste the following commands:


    This will install: git, ruby and zsh:
    # This will install: git, ruby and zsh:

    sudo apt-get update
    sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
    @@ -24,7 +24,7 @@ rbenv global 1.9.3-p374
    rbenv rehash


    Postgrest:
    # Postgrest:


    sudo apt-get -y install postgresql-9.1 libpq-dev -y
    @@ -48,7 +48,17 @@ sudo /etc/init.d/postgresql restart
    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center


    Sublime Text 2

    # Node.js

    sudo add-apt-repository ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get install python-software-properties python g++ make nodejs




    # Sublime Text 2

    sudo add-apt-repository ppa:webupd8team/sublime-text-2
    sudo apt-get update
  4. edymerchk revised this gist Apr 2, 2014. 1 changed file with 26 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -48,4 +48,30 @@ sudo /etc/init.d/postgresql restart
    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center


    Sublime Text 2

    sudo add-apt-repository ppa:webupd8team/sublime-text-2
    sudo apt-get update
    sudo apt-get install sublime-text


    Redis

    wget http://download.redis.io/redis-stable.tar.gz
    tar xvzf redis-stable.tar.gz
    cd redis-stable
    make

    It is a good idea to copy both the Redis server than the command line interface in proper places using the following commands:

    sudo cp redis-server /usr/local/bin/
    sudo cp redis-cli /usr/local/bin/


    now you can start redis server executing: redis-server





    This was written by Luis Edimerchk Laverde
  5. edymerchk revised this gist Mar 3, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -39,11 +39,11 @@ sudo -u postgres psql
    The next step is to edit the pg_hba.conf file in order to change the authentication method by md5 for all the connections.
    we can do this with any text editor, using nano it will be:

    nano /etc/postgresql/9.1/main/pg_hba.conf
    sudo nano /etc/postgresql/9.1/main/pg_hba.conf

    Now we need to restart the postgres sever doing:

    /etc/init.d/postgresql restart
    sudo /etc/init.d/postgresql restart

    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center

  6. edymerchk revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Installation guide for Ruby stack in Ubuntu
    Installation guide for Ruby stack in Ubuntu (Work In Progress)

    Open your terminal and copy and paste the following commands:

  7. edymerchk revised this gist Feb 26, 2014. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,7 @@ Now we need to restart the postgres sever doing:

    /etc/init.d/postgresql restart

    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center
    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center


    This was written by Luis Edimerchk Laverde
  8. edymerchk revised this gist Feb 26, 2014. 1 changed file with 20 additions and 0 deletions.
    20 changes: 20 additions & 0 deletions Ubuntu Guide.txt
    Original file line number Diff line number Diff line change
    @@ -26,3 +26,23 @@ rbenv rehash

    Postgrest:


    sudo apt-get -y install postgresql-9.1 libpq-dev -y

    Next, we need to change the password for the postgres user as follows

    sudo -u postgres psql
    \password
    \q


    The next step is to edit the pg_hba.conf file in order to change the authentication method by md5 for all the connections.
    we can do this with any text editor, using nano it will be:

    nano /etc/postgresql/9.1/main/pg_hba.conf

    Now we need to restart the postgres sever doing:

    /etc/init.d/postgresql restart

    Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center
  9. edymerchk renamed this gist Feb 26, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. edymerchk revised this gist Feb 26, 2014. 1 changed file with 17 additions and 17 deletions.
    34 changes: 17 additions & 17 deletions Ubuntu Guide.md
    Original file line number Diff line number Diff line change
    @@ -5,23 +5,23 @@ Open your terminal and copy and paste the following commands:

    This will install: git, ruby and zsh:

    `sudo apt-get update`
    `sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y`
    `sudo apt-get install zsh -y`
    `curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh`
    `zsh`
    `chsh -s /bin/zsh # This will set zsh as you default shell`
    `git clone git://github.com/sstephenson/rbenv.git ~/.rbenv`
    `echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile`
    `echo 'eval "$(rbenv init -)"' >> ~/.profile`
    `echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc`
    `echo 'eval "$(rbenv init -)"' >> ~/.zshrc`
    `git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build`
    `exit #Exit zsh`
    `zsh #Enter again to zsh`
    `rbenv install 1.9.3-p374`
    `rbenv global 1.9.3-p374`
    `rbenv rehash`
    sudo apt-get update
    sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
    sudo apt-get install zsh -y
    curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
    zsh
    chsh -s /bin/zsh # This will set zsh as you default shell
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exit #Exit zsh
    zsh #Enter again to zsh
    rbenv install 1.9.3-p374
    rbenv global 1.9.3-p374
    rbenv rehash


    Postgrest:
  11. edymerchk revised this gist Feb 26, 2014. 1 changed file with 15 additions and 15 deletions.
    30 changes: 15 additions & 15 deletions Ubuntu Guide.md
    Original file line number Diff line number Diff line change
    @@ -7,21 +7,21 @@ This will install: git, ruby and zsh:

    `sudo apt-get update`
    `sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y`
    sudo apt-get install zsh -y
    curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
    zsh
    chsh -s /bin/zsh # This will set zsh as you default shell
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exit #Exit zsh
    zsh #Enter again to zsh
    rbenv install 1.9.3-p374
    rbenv global 1.9.3-p374
    rbenv rehash
    `sudo apt-get install zsh -y`
    `curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh`
    `zsh`
    `chsh -s /bin/zsh # This will set zsh as you default shell`
    `git clone git://github.com/sstephenson/rbenv.git ~/.rbenv`
    `echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile`
    `echo 'eval "$(rbenv init -)"' >> ~/.profile`
    `echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc`
    `echo 'eval "$(rbenv init -)"' >> ~/.zshrc`
    `git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build`
    `exit #Exit zsh`
    `zsh #Enter again to zsh`
    `rbenv install 1.9.3-p374`
    `rbenv global 1.9.3-p374`
    `rbenv rehash`


    Postgrest:
  12. edymerchk revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Ubuntu Guide.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ Open your terminal and copy and paste the following commands:
    This will install: git, ruby and zsh:

    `sudo apt-get update`
    sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
    `sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y`
    sudo apt-get install zsh -y
    curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
    zsh
  13. edymerchk revised this gist Feb 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Ubuntu Guide.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Open your terminal and copy and paste the following commands:

    This will install: git, ruby and zsh:

    sudo apt-get update
    `sudo apt-get update`
    sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
    sudo apt-get install zsh -y
    curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
  14. edymerchk created this gist Feb 26, 2014.
    28 changes: 28 additions & 0 deletions Ubuntu Guide.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    Installation guide for Ruby stack in Ubuntu

    Open your terminal and copy and paste the following commands:


    This will install: git, ruby and zsh:

    sudo apt-get update
    sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y
    sudo apt-get install zsh -y
    curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
    zsh
    chsh -s /bin/zsh # This will set zsh as you default shell
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init -)"' >> ~/.zshrc
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exit #Exit zsh
    zsh #Enter again to zsh
    rbenv install 1.9.3-p374
    rbenv global 1.9.3-p374
    rbenv rehash


    Postgrest: