Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Duncan SunSparc

View GitHub Profile
@SunSparc
SunSparc / gist:cf625528651cc5ade11b73853d49674e
Created Aug 6, 2019
Habitica: adding a todo with python
View gist:cf625528651cc5ade11b73853d49674e
#!/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.",
@SunSparc
SunSparc / # openssh - 2018-04-06_14-58-16.txt
Created Apr 6, 2018
openssh on macOS 10.13.3 - Homebrew build logs
View # openssh - 2018-04-06_14-58-16.txt
Homebrew build logs for openssh on macOS 10.13.3
Build date: 2018-04-06 14:58:16
@SunSparc
SunSparc / gist:4c4fffcb1a6d7d1fca8a5cff212646bb
Created Oct 17, 2017
consul watch -type=service -service=vault
View gist:4c4fffcb1a6d7d1fca8a5cff212646bb
[
{
"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 / systemd-path-unit.txt
Last active Sep 12, 2019
Example of using a systemd .path unit
View systemd-path-unit.txt
# 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 / keybase.md
Last active Nov 24, 2015
Keybase Proof
View keybase.md

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: