Skip to content

Instantly share code, notes, and snippets.

View bretweinraub's full-sized avatar

Bret Weinraub bretweinraub

View GitHub Profile
postgres@localhost:~()-> psql -l
List of databases
Name | Owner | Encoding | Collation | Ctype | Access privileges
----------------------------+-----------+-----------+-----------+-------+-----------------------
adb_development | postgres | SQL_ASCII | C | C |
alexion_development | postgres | UTF8 | C | C |
alexion_test | bweinraub | UTF8 | C | C |
aura_dashboard_development | postgres | SQL_ASCII | C | C |
aura_dashboard_test | bweinraub | UTF8 | C | C |
aura_site_development | postgres | SQL_ASCII | C | C |
@bretweinraub
bretweinraub / gist:913593
Created April 11, 2011 14:19
better rvm use
rvmuse () {
if [ -d ~/.rvm/gems ]; then
rvmdir=~/.rvm/gems
else
if [ -d /usr/local/rvm/gems ]; then
rvmdir=/usr/local/rvm/gems
else
echo "RVM installed?"
return
fi
curl -X POST --data-urlencode content@"md/installation.md" -d name="Md/installation.md" -d theme=v1 http://documentup.com/compiled 1> "public/installation.html"
NameVirtualHost *:80
<VirtualHost *:80>
ServerName espace-allemand.ch
ServerAlias *.espace-allemand.ch
ServerAdmin www-admin@espace-allemand.ch
DocumentRoot /var/www/espace-allemand/production
DirectoryIndex index.html
<Directory /var/www/espace-allemand/production >
AllowOverride All
Order Deny,Allow