Skip to content

Instantly share code, notes, and snippets.

View DuncanBetts's full-sized avatar

Duncan Betts DuncanBetts

View GitHub Profile
@DuncanBetts
DuncanBetts / keybase.md
Created July 1, 2019 11:45
Prove Twitter Identity using GPG, via Keybase.io

Keybase proof

I hereby claim:

  • I am duncanbetts on github.
  • I am duncanbetts (https://keybase.io/duncanbetts) on keybase.
  • I have a public key ASA0upOcEbI6QuVaseAMS2nvmlby-_K2-s_ei-sb_Wg2Fwo

To claim this, I am signing this object:

@DuncanBetts
DuncanBetts / db_backup.sh
Created July 14, 2017 11:05 — forked from bendavis78/db_backup.sh
A simple database backup / rotation / prune script
#!/bin/bash
# for use with cron, eg:
# 0 3 * * * postgres /var/db/db_backup.sh foo_db
if [[ -z "$1" ]]; then
echo "Usage: $0 <db_name> [pg_dump args]"
exit 1
fi
@DuncanBetts
DuncanBetts / 0_reuse_code.js
Created January 21, 2017 17:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console