str = 'Привет'
puts str # => Привет
puts str.downcase # => Привет
require 'active_support/all' # not required inside Rails app
| function apt_download() { | |
| PACKAGE=$1 | |
| URI=`apt-cache show $PACKAGE | grep "Filename:" | cut -f 2 -d " "` | |
| wget http://archive.ubuntu.com/ubuntu/$URI | |
| } |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "precise32" | |
| config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
| config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
| config.vm.hostname = "ruby-dev-server" | |
| config.vm.provision :shell, path: "install.sh" |