Skip to content

Instantly share code, notes, and snippets.

View heisian's full-sized avatar
💭
🗡

Tim heisian

💭
🗡
  • Oakland, CA
View GitHub Profile
@heisian
heisian / _returning.js
Last active October 19, 2018 16:20
returning('*')
const { DB } = require('db')
const db = new DB()
//
;(async () => {
await db.connect()
await db.transaction(async (trx) => {
const user = await db.models.User.query(trx)
.insert({})
.returning('*')
@heisian
heisian / safari-style-password.sh
Last active October 9, 2018 20:03
Generate a Safari-style password in bash
#!/bin/bash
# ################################################
#
# Generate a Safari-style password: V4R-cG2-Cru-J5d
#
# Usage:
# $ MY_PASSWORD=$(./safari-style-password.sh)
# $ echo $MY_PASSWORD
#