Skip to content

Instantly share code, notes, and snippets.

@hagemann
hagemann / database.js
Last active July 12, 2025 22:06
Promisified MySQL middleware for Node.js
const util = require('util')
const mysql = require('mysql')
const pool = mysql.createPool({
connectionLimit: 10,
host: 'localhost',
user: 'root',
password: 'password',
database: 'my_database'
})
@silpol
silpol / Install Lets Encrypt.md
Created December 16, 2017 16:57 — forked from sampaiodiego/Install Lets Encrypt.md
Steps to install Letsencrypt
@glen-cheney
glen-cheney / encoding-video.md
Last active November 15, 2025 02:37
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus