Skip to content

Instantly share code, notes, and snippets.

View blackhat06's full-sized avatar

blackhat06 blackhat06

  • Palo Alto
View GitHub Profile

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@blackhat06
blackhat06 / a.sh
Created March 11, 2013 12:16 — forked from varavut/a.sh
sudo apt-get update
sudo apt-get install openjdk-6-jre-headless -f
sudo apt-get install curl
sudo apt-get install unzip
sudo apt-get install openssh-server
sudo curl -OL http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.zip
sudo unzip elasticsearch-* && rm elasticsearch-*.zip
cd elasticsearch-0.19.8
sudo mkdir /usr/local/elasticsearch
ng uglifier (1.2.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
py@ruhil:~/vikasr$ sudo rake db:create
py@ruhil:~/vikasr$ rails s
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home/py/vikasr/tmp/pids (Errno::EACCES)
geek@cloud:~$ sudo rvm install 1.9.2
[sudo] password for geek:
geek@cloud:~$ sudo rvm install 1.9.2
[sudo] password for geek:
Sorry, try again.
[sudo] password for geek:
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.2-p290 (already extracted)
geek@cloud:~$ sudo rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-readline-dir=$HOME/.rvm/usr
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to /usr/share/ruby-rvm/src/ruby-1.9.2-p290
ruby-1.9.2-p290 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.2-p290
Fetching yaml-0.1.4.tar.gz to /usr/share/ruby-rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 48234 0 0:00:09 0:00:09 --:--:-- 62125