Skip to content

Instantly share code, notes, and snippets.

@davehughes
davehughes / .pgpass
Last active December 6, 2022 10:38
psql connection aliasing/management
# alias:northwind
db1.example.com:5432:northwind:postgres:hunter2
# alias:mainframe
db1.example.com:5432:mainframe:dave:password123
db1.example.com:5432:unaliased:postgres:
@isaacs
isaacs / leaky.js
Last active December 13, 2015 20:58
var http = require('http');
// good thing we're using the same actual buffer over and over,
// or else this would blow up. Can you imagine if it was real
// data, and not just the same chunk over and over again?
var chunk = new Buffer(65536);
var server = http.createServer(function(req, res) {
res.write('start it off...');