Skip to content

Instantly share code, notes, and snippets.

View andrewspiers's full-sized avatar

Andrew Spiers andrewspiers

  • Melbourne, Australia
View GitHub Profile
@andrewspiers
andrewspiers / rst2html.css
Created January 3, 2018 02:55 — forked from vergissberlin/rst2html.css
Documentation: Create GitHub like styled html doc file with rst2html
/**
* :Author: Chad Skeeters
* :Contact: cskeeters@nciinc.com
* Stylesheet for use with Docutils/rst2html.
* Example: rst2html --stylesheet=rst2html.css README.rst doc/html/README.html
*/
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
@andrewspiers
andrewspiers / GNUPG Cheatsheet.md
Created September 28, 2017 00:38 — forked from turingbirds/GNUPG Cheatsheet.md
GPG (GNUPG) Cheatsheet

GNUPG CHEATSHEET

Setting up: key generation

This generates a public/private keypair.

$ gpg --gen-key

$ gpg --list-secret-keys

# Use those functions to enumerate all interfaces available on the system using Python.
# found on <http://code.activestate.com/recipes/439093/#c1>
# WARNING! Only returns interfaces with an address!
import socket
import fcntl
import struct
import array
<<COMMENT
NICE DATES
==========
I frequently want to make timestamped files.
The 'date' command built in formats all contain spaces and
colons and things I don't want in a file name.
So it is necessary to construct something.
I find myself needing to do this again and again, hopefully I can