Skip to content

Instantly share code, notes, and snippets.

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

Bert Goethals Bertg

🏠
Working from home
  • Younited
  • Ghent, Belgium
  • 14:42 (UTC +02:00)
View GitHub Profile
@Bertg
Bertg / Suggestion
Created August 13, 2012 09:29
I18n Interpolation
# I18n Interpolation plan
## Introduction
### Inline pluralisation
These propositions different interpolations indicators are used. `%{}'` and `%<{}>` are 2 of them. In this discussion we should focus on the content of these tags. What type of indicators we would be using is more of a compatibility and/or performance question.
#### Value interpolations
@Bertg
Bertg / devise_migration.rb
Created May 11, 2011 14:05
Migrating to a new password encryption in devise, coming from authlogic
class MigrateUserToDevise < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.string :encrypted_password, :null => false, :limit => 128
# ...
end
end
def self.down
end
@mikhailov
mikhailov / installation.sh
Created November 23, 2010 15:18
nginx+passenger (real production config)
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz