Skip to content

Instantly share code, notes, and snippets.

View SunSparc's full-sized avatar

Jonathan Duncan SunSparc

View GitHub Profile
@SunSparc
SunSparc / keybase.md
Last active November 24, 2015 18:23
Keybase Proof

Keybase proof

I hereby claim:

  • I am sunsparc on github.
  • I am sunsparc (https://keybase.io/sunsparc) on keybase.
  • I have a public key whose fingerprint is E8D9 2B4F 36EE 773D 4A54 E503 6EC9 F150 E89B 5A3B

To claim this, I am signing this object:

@SunSparc
SunSparc / systemd-path-unit.txt
Last active September 12, 2019 13:44
Example of using a systemd .path unit
# Notice the `[Install]` section in the `.path` file instead of the `.service` file.
# This is important for packaging.
------------------------------------------------
/lib/systemd/system/package-name.path
------------------------------------------------
[Path]
PathChanged=/etc/package-name.config
[Install]
@SunSparc
SunSparc / gist:4c4fffcb1a6d7d1fca8a5cff212646bb
Created October 17, 2017 16:49
consul watch -type=service -service=vault
[
{
"Node": {
"ID": "9e9fd388-492c-5924-900d-9788ec3d6340",
"Node": "vault-do-sfo1-002",
"Address": "172.28.107.236",
"Datacenter": "vault",
"TaggedAddresses": {
"lan": "172.28.107.236",
"wan": "172.28.107.236"
@SunSparc
SunSparc / # openssh - 2018-04-06_14-58-16.txt
Created April 6, 2018 21:37
openssh on macOS 10.13.3 - Homebrew build logs
Homebrew build logs for openssh on macOS 10.13.3
Build date: 2018-04-06 14:58:16
@SunSparc
SunSparc / gist:cf625528651cc5ade11b73853d49674e
Created August 6, 2019 18:06
Habitica: adding a todo with python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests, json, os
json_payload = {
"text": "Test Task",
"type": "todo",
"alias": "hab-api-tasks",
"notes": "This is a test task that was set with the python requests module.",