Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# Install Postgres 9.2 on a clean Ubuntu 12.04
"""
LC_ALL issue
comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file.
sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales
comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file.
@alfredpl
alfredpl / gist:6061515
Created July 23, 2013 10:49
error executing whenever gem..
config/schedule.rb:5:in `block in initialize': undefined method `sudo' for #<Whe
never::JobList:0x00000001be50b8> (NoMethodError)
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:44
:in `every'
from config/schedule.rb:3:in `initialize'
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:25
:in `instance_eval'
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:25
:in `initialize'
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever.rb:15:in `new'
@alfredpl
alfredpl / gist:6061250
Last active December 20, 2015 03:09
How to supply password to this file
every 1.day, :at => '4:30 am' do
sudo "alfi123%"
command "sudo backup perform -t my_backup"
end