Skip to content

Instantly share code, notes, and snippets.

---
server:
http_listen_port: 0
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
client:
url: https://${GRAFANA_CLOUD_USERNAME}:${GRAFANA_CLOUD_API_KEY}@logs-prod3.grafana.net/loki/api/v1/push
@jmherbst
jmherbst / rpi-monitor.py
Created May 10, 2022 15:00
Watches https://rpilocator.com/?instock and uses Mac's `say` to let me know when I can buy one in US
#!/usr/bin/env python3
import threading
import requests
import time
import sys
import os
class Spinner:
@jmherbst
jmherbst / Dockerfile
Created March 18, 2022 13:52
Slack emoji downloader that handles base64 encoded image streams
FROM ruby:alpine
RUN apk update \
&& gem install httparty
COPY emojis.json /srv/emojis.json
COPY run.rb /srv/run.rb
WORKDIR /srv
CMD ruby ./run.rb
/* HC-SR04 Ping / Range finder wiring:
* -----------------------------------
* Particle - HC-SR04
* GND - GND
* VIN - VCC
* D2 - TRIG
* D6 - ECHO
*/
// Pins used by the Sonic sensor
@jmherbst
jmherbst / pinescript.pine
Created January 5, 2021 01:57
VWAP and EMAs (12,20,55) and Bollinger
study(title="Exponential Moving Averages (12, 20, 55)", shorttitle="EMA", overlay=true)
// Volume weighted average price (VWAP)
outvwap = vwap(hlc3)
plot(outvwap, color=red, title="VWAP")
// Exponential Moving Averages
out55ema = ema(close, 55)
out20ema = ema(close, 20)
out12ema = ema(close, 12)
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Jake Herbst",
"label": "Senior Site Reliability Engineer",
"picture": "https://en.gravatar.com/userimage/18708896/3057bb6fc7e2d1cb03b61b8c6f34cc4f.jpg?size=500",
"email": "jmherbst@gmail.com",
"phone": "(256) 479-5000",

Keybase proof

I hereby claim:

  • I am jmherbst on github.
  • I am jmherbst (https://keybase.io/jmherbst) on keybase.
  • I have a public key ASCukyhVn0hcGSW2ftU9bqjpYfSof1wmSm5ErhIEQAaj4Qo

To claim this, I am signing this object:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
mQINBFUMhXsBEADm3JzxuUX+TT0l5gUwYXeyzDGCn6c6Ccm+hFHwhJ6ALYy79c9Q
C7++bvOcLChII/cHJHTXv2Y5R/NNbKLAs32m3i72azEE57p50ipuWDTOAJOMgEZs
EM/3baR7MhOBr5masxWZ25PI3PiOp/sex5kWAklhLObs0lqHCl0AGhV37UaqpjyJ
84WQzDRLlcSMmwjcnnx8/jVaPNbw0Mwhb+2oD5P5khMeThDCmWfuCKcx8oaPiDLF
1Qb2DLnoa4kq/uq1R1FjirRgW3aM2BPNlsCLLuwTh585CpJgjQRv7tKF9aR0jITC
Kw0FmmT09sC7zyr5p7gzSEJtWk4z1CL2kaMWKLdRVe+D1dlGxNrxQaLhxr/XhuBl
{
"filters": {
"do_not_resolve": {
"attributes": {
"action": "resolve"
},
"negate": true
}
}
}
#!/bin/sh
###############################################################
# Nuance Communications
# Nuance Watcher Daemon start/stop script
#
# SPARC:This file is copied to /etc/init.d and installed as
# /etc/rc3.d/S89nuance-wd and /etc/rc3.d/K89nuance-wd
#
###############################################################
#