Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
TOPIC=$(git symbolic-ref --short HEAD 2>/dev/null)
DEST=master
die() {
echo $@
exit 1
}
git pull --rebase origin ${DEST} || die
@jcjones
jcjones / ocsp-demo-test.sh
Last active August 29, 2015 14:22
Run from the Boulder directory so that ./test/test-ca.pem is available.
#!/bin/bash
# run from Boulder dev directory
OCSP="http://ocsp.int-x1.letsencrypt.org/"
CA_CERT="test/test-ca.pem"
SERIAL=0x02000000000000016DD50EDFA6DAAF26
openssl ocsp -no_nonce -reqout /tmp/ocsp.req \
-issuer ${CA_CERT} \
-serial ${SERIAL} \
@jcjones
jcjones / Boulder Docker Scripts
Last active June 30, 2018 03:19
Scripts to run a Dockerized copy of Boulder with CFSSL.
These scripts help you to run Boulder + CFSSL in Docker in monolithic mode.
Easy use:
git clone https://gist.github.com/ce9ca04e94cd9244e18a.git boulder-docker
cd boulder-docker/
./boulder-docker.sh start
Note: You will need to execute `boulder-docker.sh` as a user with privileges to access Docker.
@jcjones
jcjones / keybase.md
Created March 2, 2015 04:58
keybase proof

Keybase proof

I hereby claim:

  • I am jcjones on github.
  • I am pug (https://keybase.io/pug) on keybase.
  • I have a public key whose fingerprint is EA9F F90C 541F 3487 2CA0 26FB BD4E B26B 978D F884

To claim this, I am signing this object:

#!/usr/bin/python
import socket
import struct
import sys
# We want unbuffered stdout so we can provide live feedback for
# each TTL. You could also use the "-u" flag to Python.
class flushfile(file):
def __init__(self, f):