Skip to content

Instantly share code, notes, and snippets.

View dzaporozhets's full-sized avatar

Dmitriy Zaporozhets dzaporozhets

View GitHub Profile
@dzaporozhets
dzaporozhets / rbenv-install-system-wide.sh
Created October 1, 2011 15:30
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
(rdb:1) p name
"Cтрока"
(rdb:1) p term
"Строка"
(rdb:1) p term.encoding
#<Encoding:UTF-8>
(rdb:1) p name.encoding
#<Encoding:UTF-8>
(rdb:1) p name == term
false
sudo aptitude install git-core curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xfvz ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure
make
sudo checkinstall -D
sudo gem update --system
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
sudo apt-get install gitosis
sudo adduser \
--system \
--shell /bin/sh \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
<%= link_to basic_info_edit_users_user_path(@user), :class => 'test' do %>
ALALALLALAL
<% end %>
@dzaporozhets
dzaporozhets / gist:1432866
Created December 5, 2011 08:33
rvm install
sudo aptitude install git-core curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc
rvm install 1.9.2
rvm use 1.9.2 --default
@dzaporozhets
dzaporozhets / gist:1432871
Created December 5, 2011 08:35
ruby native
sudo aptitude install git-core curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xfvz ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure
make
sudo checkinstall -D
sudo -u USERNAME -H sh -c "string"
Started GET "/taurus" for 193.138.246.138 at 2011-12-09 16:36:50 +0000
Processing by ServiceProvidersController#show as HTML
Parameters: {"id"=>"taurus"}
Rendered shared/_social_bar.html.erb (0.1ms)
Rendered /home/styleup/StyleUp/shared/bundle/ruby/1.9.1/gems/gmaps4rails-1.3.2/app/views/gmaps4rails/_gmaps4rails.html.erb (0.8ms)
Rendered service_providers/_service_item.html.erb (0.2ms)
Rendered service_providers/_service_type_item.html.erb (2.7ms)
Rendered service_providers/_service_type_item.html.erb (0.4ms)
Rendered service_providers/show.html.erb within layouts/application (35.1ms)
Completed 500 Internal Server Error in 44ms