Skip to content

Instantly share code, notes, and snippets.

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 / kittinz.sh
Created November 15, 2012 15:04
KITTINZ
brew install mplayer && mplayer "http://livestream-f.akamaihd.net/398160_1594566_3e41227e_1_678@41915?v=2.10.3&fp=MAC%2011,5,31,2&r=HPMHI&g=MYFXUTYHSWLA"
@Jonty
Jonty / add_github_irc_hooks.py
Created November 14, 2012 14:26
Add an IRC announce hook to every repo in a Github organisation
from github import Github # https://github.com/jacquev6/PyGithub
g = Github("USER", "PASSWORD")
repos = g.get_organization('ORGNAME').get_repos()
for repo in repos:
repo.create_hook(
"irc",
{
@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 / .mutt-mailcap
Created February 11, 2011 18:26
Temporarily uploads email attachments from mutt to a web-accessible remote directory for viewing.
image/*; ~/.showinbrowser.sh %s
application/*; ~/.showinbrowser.sh %s
audio/*; ~/.showinbrowser.sh %s
text/*; ~/.showinbrowser.sh %s
@Jonty
Jonty / install_xkcd_urlhandler.sh
Created November 19, 2010 17:35
An xkcd://318 URL handler (For Linux)
#!/bin/sh
# An xkcd://318 URL handler, for linux types.
echo -n "#!/bin/sh\nexec xdg-open \`echo \"\$@\" | sed -e 's/xkcd:\//http:\/\/xkcd.com/'\`" > $HOME/.xkcdhandler
chmod +x $HOME/.xkcdhandler
gconftool-2 -t string -s /desktop/gnome/url-handlers/xkcd/command "$HOME/.xkcdhandler %s"
gconftool-2 -t bool -s /desktop/gnome/url-handlers/xkcd/needs_terminal false
gconftool-2 -t bool -s /desktop/gnome/url-handlers/xkcd/enabled true
def just_one_kind_of_response?(item, controller)
case controller
when 'actions'
if item.comments.blank? || item.suggestions.blank?
return true
end
when 'thoughts'
if item.comments.blank? || item.suggestions.blank?
#!/usr/bin/python
import sys
labels = []
values = []
for line in sys.stdin:
bits = line.strip().split(' ')
value = bits.pop(0)
label = ' '.join(bits)
<?php
date_default_timezone_set('Europe/London');
function getMiddleDay($day, $month, $year) {
$thisMonth = mktime(0, 0, 0, $month, 0, $year);
$daysInMonth = date('t', $thisMonth);
$middleTimestamp = mktime(0, 0, 0, $month, floor($daysInMonth/2), $year);
<?php
function getMiddleDay($day, $month, $year) {
$thisMonth = mktime(0, 0, 0, $month, 0, $year);
$daysInMonth = date('t', $thisMonth);
$middleTimestamp = mktime(0, 0, 0, $month, floor($daysInMonth/2), $year);
$potentials = array();
foreach (array(2,3) as $i) {