Skip to content

Instantly share code, notes, and snippets.

Avatar
🐙

Robert Estelle rwe

🐙
View GitHub Profile
@rwe
rwe / funcgen.lisp
Last active Aug 29, 2015
Random Function Generator
View funcgen.lisp
;;; 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
@rwe
rwe / affirmation
Created Dec 10, 2015
MuleSoft Contributor Agreement Acceptance by Robert Estelle
View affirmation
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 / cleanup-unused-security-groups
Created Jan 5, 2016
Interactively clean up unused VPC security groups.
View cleanup-unused-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 / keybase-gpg
Created Jan 22, 2018
GPG with a keybase user's public key
View keybase-gpg
#!/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 / psqltmp
Last active May 16, 2019
Run an ephemeral Postgres container and connect to it
View psqltmp
#!/bin/bash
set -Eeu -o pipefail
PG_VERSION="${PG_VERSION:-9.6-alpine}"
psqltmp() {
(
set -Eeu -o pipefail
local _pgcmd
@rwe
rwe / keybase.md
Last active May 7, 2020
Account moved from erydo to rwe: update proof.
View keybase.md

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: