Skip to content

Instantly share code, notes, and snippets.

@mrmagooey
mrmagooey / Dockerfile
Last active October 20, 2015 23:30
Dockerfile for building extempore
FROM debian:latest
# which GitHub branch to build Extempore from
ENV EXTEMPORE_GH_BRANCH master
# get deps (listed in alphabetical order)
RUN apt-get update --yes && apt-get install --yes \
python build-essential curl libasound2-dev unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
@mrmagooey
mrmagooey / main.py
Last active November 4, 2020 21:52
BoM radar gif
#!/usr/bin/env python
# MIT Licence
# Gets radar overlays from the Australian Bureau of Meteorology radar pages
# and creates an animated gif out of it.
# Needs requests and pillow (the python packages) and ImageMagick the standalone graphics
# program to be installed and available to work.
# All radar images are copyright BoM, and this script should not be used for
# commercial purposes, or possibly at all.
@mrmagooey
mrmagooey / README.md
Last active December 21, 2015 10:09 — forked from mbostock/.block
@mrmagooey
mrmagooey / README.md
Last active December 20, 2015 09:49 — forked from mbostock/.block

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

@mrmagooey
mrmagooey / apns.py
Created February 6, 2013 13:04 — forked from fermion/apns.py
import socket, ssl, json, struct
import binascii
# device token returned when the iPhone application
# registers to receive alerts
deviceToken = '39cac56f 986a0e66 3c4fd4f4 68df5598 024d2ca3 8b9f307c 741c180e 9fc30c62'
thePayLoad = {
'aps': {
'alert':'Oh no! Server\'s Down!',
@mrmagooey
mrmagooey / .emacs
Last active November 30, 2015 03:21
.emacs file
;; increase gc threshold for startup
(setq gc-cons-threshold 100000000)
;;;;;;;;;;;;
;; el-get ;;
;;;;;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
@mrmagooey
mrmagooey / supervisord.sh
Created August 27, 2012 05:15 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.