Skip to content

Instantly share code, notes, and snippets.

View Imomoi's full-sized avatar

Viacheslav Molokov Imomoi

View GitHub Profile
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
@Imomoi
Imomoi / setup-statsd.sh
Created February 9, 2012 08:10 — forked from collegeman/setup-statsd.sh
Turn an Ubuntu 11.10 into a StatsD/Graphite server
# install git
sudo apt-get update
sudo apt-get install make gcc g++ zlib1g-dev curl libssl-dev apache2-utils git-core -y
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
git fetch --tags
git checkout v0.6.10
./configure
make