Skip to content

Instantly share code, notes, and snippets.

@jagregory
jagregory / hook-dns-01-lets-encrypt-route53.py
Created August 8, 2016 01:58
Python 3 script to use as a hook for the letsencrypt.sh client
#!/usr/bin/env python3
# How to use:
#
# LE_HOSTED_ZONE=XXXXXX LE_AWS_PROFILE=dns-access ./letsencrypt.sh --cron --domain example.org --challenge dns-01 --hook /tmp/hook-dns-01-lets-encrypt-route53.py
#
# More info about letsencrypt.sh: https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-for-DNS-01-hooks
# Using AWS Profiles: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles
# Obtaining your Hosted Zone ID from Route 53: http://docs.aws.amazon.com/cli/latest/reference/route53/list-hosted-zones-by-name.html
package parser
import "database/sql"
type Row struct {
MenuId int
Menu sql.NullString
Submenu sql.NullString
Item sql.NullString
Parent int
Jeremy, this is for your benefit. I wanted to follow Josh's advice with that patch that Peter just sent in.
Here was my workflow:
- git pull (make sure I'm up to date)
- git apply patch.txt
- del patch.txt
- rake
- git commit -a -m "blah blah"
- git pull
using System.Reflection;
using FluentNHibernate.AutoMap;
using FluentNHibernate.Framework;
using MyApplication.Core.Domain;
namespace MyApplication.Core.Persistence
{
public class MyCustomPersistenceModel : AutoPersistenceModel
{
public MyCustomPersistenceModel()