Skip to content

Instantly share code, notes, and snippets.

@denysonique
denysonique / gist:4140665
Created November 24, 2012 17:48
Sequelize passwordless PostgreSQL connection
sequelize = new Sequelize({'database_name', null, null,
dialect: 'postgres',
native: true,
protocol: 'postgresql',
host: null,
port: null,
})
@Util
Util / scott_irc_02.pl
Created April 6, 2012 14:08
Example of Moose classes in the same single script as the mainline code.
# Yes, you can put Moose classes in the same source file as your mainline code, rather than doing the CPAN-standard of one class per module.
# However, you must place the class definitions above the uses of the classes.
package Point;
use Moose;
has 'x' => ( isa => 'Int', is => 'rw' );
has 'y' => ( isa => 'Int', is => 'rw' );
__PACKAGE__->meta->make_immutable;
@rija
rija / install_puppet_mac.sh
Created February 23, 2012 23:04
Installing Puppet on Mac OS X
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3