Skip to content

Instantly share code, notes, and snippets.

@Jonty
Jonty / convert_cf_spec.py
Created December 14, 2015 14:12
Converts from cf job spec properties format to something usable with a normal manifest. Horrendous.
import sys
import yaml
import re
import textwrap
data = {}
for k, v in yaml.load(sys.stdin.read())['properties'].items():
prev = data
bits = k.split('.')
for name in bits[:-1]:
properties:
# The domain name for this CloudFoundry deploy
domain: ~
acceptance_tests:
# The Elastic Runtime Application Domain
apps_domain: ~
# The name of the binary buildpack to use in acceptance tests that specify a
# buildpack.
binary_buildpack_name: ~
# Whether to pass the -v flag to cf-acceptance-tests

Voting for descale

  • Multi-oauth library for signin
  • A thing to suggest topics
  • A way to vote things up or down
  • Heroku
  • Any language you like
  • Event
    • Create (and set an end date)
    • End
  • Public, no need to login to read

Thank you for your interest in our beta program! We're excited to let you know that your domains (below) have been whitelisted, and you can now utilize an ACME client to obtain a certificate for them.

Quick Start

To use Let's Encrypt's official client to obtain your real certificates, you will need to provide the production API URL on the command line:

  https://acme-v01.api.letsencrypt.org/directory

When running the Python client (installation directions [1]), be sure to specify the --server argument as shown below:

@Jonty
Jonty / gitconfig
Created October 12, 2015 10:09
My /etc/gitconfig
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
tidy-remotes = !git remote prune origin
@Jonty
Jonty / gitconfig
Created May 19, 2015 16:58
My global /etc/gitconfig
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
tidy-remotes = !git remote prune origin
@Jonty
Jonty / build_dovecot_lucene.diff
Created April 19, 2015 14:55
Debian quilt patch to enable building of the dovecot-lucene package on Ubuntu
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: Dovecot Maintainers <jaldhar-dovecot@debian.org>
Uploaders: Jaldhar H. Vyas <jaldhar@debian.org>, Fabio Tranchitella <kobold@debian.org>, Joel Johnson <mrjoel@lixil.net>, Marco Nenciarini <mnencia@debian.org>
-Build-Depends: debhelper (>= 7.2.3~), dpkg-dev (>= 1.16.1), pkg-config, libssl-dev, libpam0g-dev, libldap2-dev, libpq-dev, libmysqlclient-dev, libsqlite3-dev, libsasl2-dev, zlib1g-dev, libkrb5-dev, drac-dev (>= 1.12-5), libbz2-dev, libdb-dev, libcurl4-gnutls-dev, libexpat-dev, libwrap0-dev, dh-systemd, po-debconf, lsb-release, hardening-wrapper, dh-autoreconf, autotools-dev
+Build-Depends: debhelper (>= 7.2.3~), dpkg-dev (>= 1.16.1), pkg-config, libssl-dev, libpam0g-dev, libldap2-dev, libpq-dev, libmysqlclient-dev, libsqlite3-dev, libsasl2-dev, zlib1g-dev, libkrb5-dev, drac-dev (>= 1.12-5), libbz2-dev, libdb-dev, libcurl4-gnutls-dev, libexpat-dev, l

Keybase proof

I hereby claim:

  • I am jonty on github.
  • I am jonty (https://keybase.io/jonty) on keybase.
  • I have a public key whose fingerprint is A856 4F29 C811 93D8 B8C2 86D9 B1A5 BC14 1F6B EEE5

To claim this, I am signing this object:

@Jonty
Jonty / gov.uk.ipv4.md
Last active August 29, 2015 14:18
Every IPv4 address with reverse dns ending in .gov.uk

This file contains a list of every IPv4 address with reverse DNS ending in .gov.uk. There's some interesting things in here.

If you like this, you may also like my list of UK government web proxies.

@jonty

109.104.88.83	ola.kent.gov.uk
109.104.88.84	ola.kent.gov.uk
109.176.74.7	filter.torbay.gov.uk
@Jonty
Jonty / dorkbot_5000.txt
Created March 10, 2015 00:35
dorkbot 5000
jonty@towel:~$ python
>>> import datetime
>>> from dateutil.relativedelta import relativedelta
>>> FIRST_DORKBOT = datetime.date(year=2001, month=11, day=7)
>>> (FIRST_DORKBOT + relativedelta(days=5000)).isoformat()
'2015-07-17'