Skip to content

Instantly share code, notes, and snippets.

View fcarrega's full-sized avatar

Fabrice Carrega fcarrega

View GitHub Profile
@fcarrega
fcarrega / .gitconfig
Last active December 30, 2016 13:52
Personal git configuration file
# F. Carrega Git configuration file
[user]
name = Fabrice Carrega
email = fabrice.carrega@DOMAIN.com
[alias]
co = checkout
ps = push
r = remote -v
a = add
@fcarrega
fcarrega / Development checklist.md
Last active August 29, 2015 14:05
Development checklist
  • Models
    • RSpec specs : update spec/models/model_name_spec.rb file
    • Factories specs : update spec/factories_spec/factories_spec.rb file
    • Factories : update spec/factories/factories.rb file
    • Sample data script : update lib/tasks/development/sample_data.rake file
    • RDoc : update app/models/model_name.rb file comments
    • Migration passing in development environment : run rake:db:migrate
    • Migration passing in test environment : run rake db:test:prepare
    • Database population passing : run rake db:populate
  • Locales : update config/locales/model_name/fr.yml & config/locales/model_name/en.yml files
@fcarrega
fcarrega / deploy
Created April 15, 2014 13:10
Heroku deployment script
#!/bin/bash
#
# Release script
# Launch script
clear
echo -n "Releasing application. Please run this script outside of virtual machine. Continue ? y/n : "
read ok
if [ "$ok" = "y" ] || [ "$ok" = "Y" ]; then