Skip to content

Instantly share code, notes, and snippets.

View p1nox's full-sized avatar

Raul Pino p1nox

View GitHub Profile
@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active July 20, 2024 11:55
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@p1nox
p1nox / ccopter.rake
Last active December 12, 2015 09:58
Copycopter Offline: using copycopter only on development environment
namespace :ccopter do
desc "Split copycopter yml file"
task :split_ccopter_file => :environment do
CCOPTER_FILE = "#{Rails.root}/config/locales/copycopter.yml"
created_files = 0
if File.exists?(CCOPTER_FILE)
CCOPTER = YAML.load_file(File.open(CCOPTER_FILE))