Skip to content

Instantly share code, notes, and snippets.

View dmptrluke's full-sized avatar

Luke Rogers dmptrluke

View GitHub Profile
[Unit]
Description=borgmatic backup
Wants=network-online.target
After=network-online.target
ConditionACPower=true
[Service]
Type=oneshot
# Security settings for systemd running as root, optional but recommended to improve security. You
@dmptrluke
dmptrluke / LICENSE
Last active December 30, 2019 03:55
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
License for https://gist.github.com/dmptrluke/792781d52e4c294f018cdf17ca8cf18b/
Zero-Clause BSD
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@dmptrluke
dmptrluke / keybase.md
Created December 28, 2019 15:16
Keybase Proof

Keybase proof

I hereby claim:

  • I am dmptrluke on github.
  • I am dmptr (https://keybase.io/dmptr) on keybase.
  • I have a public key ASDQZTHRJU3oOSJ8lpsYpIB-_mql2_duIVP6MAgkf1FARgo

To claim this, I am signing this object:

@dmptrluke
dmptrluke / sensors.yaml
Created July 17, 2019 03:32
Air quality index sensor
### sensors.yaml
## AIR QUALITY
- platform: waqi
token: !secret waqi_key
locations:
- St Albans
## TEMPLATES
- platform: template
@dmptrluke
dmptrluke / 05_nuclearcraft.json
Created October 3, 2018 05:05
A CoFH World JSON file for NuclearCraft. Ore amounts are close to stock NuclearCraft values.
{
"populate": {
"thorium": {
"distribution": "uniform",
"generator": {
"block": {
"name": "nuclearcraft:ore",
"properties": {
"type": "thorium"
}
@dmptrluke
dmptrluke / gist:1cd887e56e382fdd9d88f615f7dc0dff
Created October 3, 2018 05:05
A CoFH World JSON file for NuclearCraft. Ore amounts are close to stock NuclearCraft values.
We couldn’t find that file to show.
ethernet eth0 {
description eth0
duplex auto
speed auto
mtu 1508
vif 10 {
pppoe 0 {
default-route auto
firewall {
in {
@dmptrluke
dmptrluke / a_universal_blocks.md
Last active August 14, 2016 20:18
Universal Block Widget CSS and Template files

Blocks - Universal Edition

Here's the CSS and four templates for my new universal blocks code.

Sample Image

It includes one CSS file that works with four different templates:

  • fancy: Image is posted above.
  • fancy_extra: Looks like this. Same as fancy but with the social icons and stuff.
### Keybase proof
I hereby claim:
* I am lukeroge on github.
* I am dmptr (https://keybase.io/dmptr) on keybase.
* I have a public key whose fingerprint is F771 3F1F 1333 B783 B032 173C 003A F34B D59B 1BFB
To claim this, I am signing this object:
@dmptrluke
dmptrluke / piglatin.py
Last active August 29, 2015 14:15
Pig Latin translator command for CloudBot
import string
import nltk
from cloudbot import hook
pronunciations = None
# Translate functions by J.F. Sebastian
# <https://stackoverflow.com/questions/22773826/pig-latin-translator>