Skip to content

Instantly share code, notes, and snippets.

View misteral's full-sized avatar
🏠
Working from home

Aleksandr misteral

🏠
Working from home
View GitHub Profile
@misteral
misteral / 0-readme.md
Created March 28, 2012 12:34 — forked from burke/0-readme.md
ruby-1.9.3-p125 cumulative performance patch.

Patched ruby 1.9.3-p125 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

@misteral
misteral / install-rails-desktop-env.sh
Created May 4, 2012 16:42
install-rails-desktop-env
#!/bin/bash
# bash script for installing Rails environment on Ubuntu 12.04 Server
#
# Some sources has been changed to mirrors in China mainland.
#
# To use this script, do this in your shell:
#
# $ curl -L https://raw.github.com/gist/2596068/install-rails-desktop-env.sh | bash
@misteral
misteral / Gemfile
Created May 11, 2012 19:23
Плюшки для Spree
group :development, :test do
gem "rails-erd" # построение ERD модели
gem "letter_opener" #мыло в браузер для отладки
end
gem 'import_products', :path => '/home/ror/projects/spree-import-products'
gem 'delayed_job_active_record'
gem 'russian'
gem 'spree_i18n', :git => 'git://github.com/misteral/spree_i18n.git'
@misteral
misteral / ssh_tunnel.sh
Created May 12, 2012 04:54
ssh tunnel service
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME='ssh-tunnel'
DESC="SSH Tunnel"
PIDFILE=/var/run/$NAME.pid
# connection params
SSH_HOST='trender'
@misteral
misteral / install_rails_vds_env.sh
Last active October 5, 2015 07:48
Rails vds environment
#!/bin/bash
# bash script for installing Rails environment on Ubuntu 12.04 Server
#
# Some sources has been changed to mirrors in China mainland.
#
# To use this script, do this in your shell:
#
# $ curl -L https://raw.github.com/gist/2773706/install_rails_vds_env.sh | bash
@misteral
misteral / firewall.sh
Last active October 5, 2015 09:58
install firewall and ssh
#!/bin/bash
# replace config ssh and iptables
# To use this script, do this in your shell:
#curl -L https://raw.github.com/gist/2790078/firewall.sh | bash
#sudo apt-get -y install git-core
@misteral
misteral / sshd_config
Created May 29, 2012 04:16
Ностройка для sshd
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 856
AllowUsers ror
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
@misteral
misteral / pull_all
Created June 8, 2012 09:34
repostories pull&push
#!/bin/bash
PREFIX=`date +%F`
g=`find ~/projects/ -name .git -maxdepth 2`
for repo in ${g[@]}
do
cd ${repo}
cd ..
echo `pwd`
@misteral
misteral / db_srv_recipe.sh
Created August 1, 2012 05:30
DB server recipe
#!/bin/bash
# bash script for installing Rails environment on Ubuntu 12.04 Server
#
# Some sources has been changed to mirrors in China mainland.
#
# To use this script, do this in your shell:
#
# $ curl -L https://raw.github.com/gist/3224000/db_srv_recipe.sh | bash
@misteral
misteral / users.sh
Created August 1, 2012 05:59
Комананды после установки сервера
#!/bin/bash
#Заходим под пользователем
#sudo passwd root
localedef ru_RU.UTF-8 -i ru_RU -fUTF-8
locale-gen ru_RU.UTF-8
sudo adduser -G sudo ror