Skip to content

Instantly share code, notes, and snippets.

View rwe's full-sized avatar
🐙

Robert Estelle rwe

🐙
View GitHub Profile
@rwe
rwe / keybase.md
Last active May 7, 2020 22:09
Account moved from erydo to rwe: update proof.

Keybase proof

I hereby claim:

  • I am rwe on github.
  • I am rwe (https://keybase.io/rwe) on keybase.
  • I have a public key ASDcu8TOQgRhszifWLt_9cteG9Td3YIQg9lvXBs1pt9DHQo

To claim this, I am signing this object:

@rwe
rwe / psqltmp
Last active May 16, 2019 21:22
Run an ephemeral Postgres container and connect to it
#!/bin/bash
set -Eeu -o pipefail
PG_VERSION="${PG_VERSION:-9.6-alpine}"
psqltmp() {
(
set -Eeu -o pipefail
local _pgcmd
@rwe
rwe / keybase-gpg
Created January 22, 2018 18:15
GPG with a keybase user's public key
#!/bin/bash
set -Eeu -o pipefail
# Runs `gpg` with a keybase user's public key as the recipient.
# First argument is keybase username. Remaining arguments are passed to gpg -r xxx …
die() {
echo "$@" >&2
exit 127
}
@rwe
rwe / cleanup-unused-security-groups
Created January 5, 2016 00:56
Interactively clean up unused VPC security groups.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import boto
import readline # noqa: W0611
def p(string):
sys.stdout.write(string)
@rwe
rwe / affirmation
Created December 10, 2015 19:26
MuleSoft Contributor Agreement Acceptance by Robert Estelle
I, Robert Estelle, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Thu Dec 10 2015 14:26:07 GMT-0500 (COT)
@rwe
rwe / funcgen.lisp
Last active August 29, 2015 14:05
Random Function Generator
;;; Robert Estelle 23 Aug 2014
(defun random-elt (&rest lists)
; Return random element from lists
(let ((combined (apply #'concatenate 'list lists)))
(elt combined (random (length combined)))))
(defun funwith (fn num-args vars ops max-op-depth)
; Generate a random operation with the given function `fn` which takes
; `num-args` arguments. The scalar variables `vars` may be used, or any of