Skip to content

Instantly share code, notes, and snippets.

View auracode's full-sized avatar

Aura auracode

  • Aura Aerosols
  • Mumbai
View GitHub Profile
# -*- coding: utf-8 -*-
"""
A real simple app for using webapp2 with auth and session.
It just covers the basics. Creating a user, login, logout and a decorator for protecting certain handlers.
PRE-REQUIREMENTS:
Set at secret_key in webapp2 config:
@auracode
auracode / psql-9.2-ubuntu-12.04.txt
Last active December 15, 2023 07:36
Installing PostgreSQL 9.2 on Ubuntu 12.04 for rails development
# Installing PostgreSQL 9.2 on Ubuntu 12.04 for rails development
#Add repo
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
#install psql 9.2 and libpq
#!/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.