Skip to content

Instantly share code, notes, and snippets.

View chriscz's full-sized avatar
🍎
vs 🍊

Chris Coetzee chriscz

🍎
vs 🍊
  • Activitar
  • Brisbane, Australia
  • 03:15 (UTC +10:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am chriscz on github.
  • I am chriscz (https://keybase.io/chriscz) on keybase.
  • I have a public key whose fingerprint is 53C4 0540 6C16 09E7 F32A A341 AA42 2257 9499 8735

To claim this, I am signing this object:

#!/bin/bash
# https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8
# Make sure you grab the latest version
set -euo pipefail
VERSION='3.5.1'
FILENAME=protoc-${VERSION}-linux-x86_64.zip
INSTALL="/opt/protobuf/protoc-${VERSION}"
CURRENT="/opt/protobuf/current"
@chriscz
chriscz / signalhandling.py
Last active December 27, 2016 13:17
Snippet for signal handling in Python (useful for monitoring)
import signal
import os
import readline
from pprint import pprint
def handle_shell(signal, frame):
frames = []
while frame: