Skip to content

Instantly share code, notes, and snippets.

View esteele's full-sized avatar

Eric Steele esteele

View GitHub Profile
@esteele
esteele / faerun_pantheon.json
Last active April 25, 2021 00:43
A (work-in-progress) Faerun pantheon for Eigengrau's Essential Estabilshment Generator
{
"name": "faerun",
"description": "",
"followers": {
"description": "",
"favouredWeapon": "",
"holyDays": {
"earth": []
}
},
import requests
SOURCE_URL_BASE = 'http://localhost:8080/Plone'
TARGET_URL_BASE = 'http://localhost:9090/Plone'
response = requests.post('%s/@login' % SOURCE_URL_BASE,
headers={'Accept': 'application/json', 'Content-Type': 'application/json',},
json={ 'login': 'admin', 'password': 'admin', })
token = response.json()['token']
binary_sensor:
- platform: template
sensors:
is_school_day_today:
entity_id:
- calendar.is_school_day1
- calendar.is_school_day2
- calendar.is_school_day3
- calendar.is_school_day4
- calendar.is_school_day5
@esteele
esteele / package.py
Last active February 16, 2018 18:45
#!/usr/bin/env python3
import re
import sys
import os
from collections import OrderedDict
import glob
import xml.etree.ElementTree as ET
<body>
<h3>BUILD ${build.result}</h3>
<table>
<tr><td>URL</td><td><a href="${build.absoluteUrl}">${build.absoluteUrl}</a></td></tr>
<tr><td>Project:</td><td>${project.name}</td></tr>
<tr><td>Date:</td><td>${it.timestampString}</td></tr>
<tr><td>Duration:</td><td>${build.durationString}</td></tr>
<tr><td>Cause:</td><td><% build.causes.each() { cause -> %> ${cause.shortDescription} <% } %></td></tr>
</table>
Verifying that +esteele is my blockchain ID. https://onename.com/esteele

Keybase proof

I hereby claim:

  • I am esteele on github.
  • I am esteele (https://keybase.io/esteele) on keybase.
  • I have a public key whose fingerprint is 51F2 1A7B 40E8 32B5 A955 2A02 4514 41DA F1D5 218D

To claim this, I am signing this object:

@esteele
esteele / gist:dd8d302744edce88ca5d
Last active August 29, 2015 14:01
Documentation/accessibility links
Relevant links from today's chat with Paul:
* [Plone documentation](http://docs.plone.org/)
* [Documentation translation](https://www.transifex.com/projects/p/plone/)
* [Mockup examples](http://plone.github.io/mockup/dev/)
* [community.plone.org](community.plone.org)
* [Example of screenshot-generating robot tests for documentation](https://github.com/plone/papyrus#multilingual-demo)
@esteele
esteele / gist:8564640
Created January 22, 2014 18:39
Unify Plone changelogs
import urllib
from distutils.version import StrictVersion
from docutils.core import publish_doctree
import sys
from itertools import product
dist_url = "http://dist.plone.org/release/%s/versions.cfg"
def pullVersions(versionNumber):
@esteele
esteele / manage.py
Created January 9, 2013 19:58
The start of my buildout extension for managing Plone releases
#!/Users/ems174/projects/env/plone_4.3/bin/python
from argh import ArghParser, command
from configparser import ConfigParser, ExtendedInterpolation, NoOptionError
import xmlrpclib
import git
from shutil import rmtree
from tempfile import mkdtemp
from collections import OrderedDict