Skip to content

Instantly share code, notes, and snippets.

View ytjohn's full-sized avatar

John Hogenmiller ytjohn

View GitHub Profile
@ytjohn
ytjohn / resume.json
Last active June 6, 2023 14:12
in progress converting resume to json
{
"basics": {
"name": "John Hogenmiller",
"label": "Infrastructure Automation Engineer",
"email": "john@hogenmiller.net",
"phone": "(814) 602-9298",
"summary": "Experienced infrastructure engineer with a strong background in building and maintaining large-scale hardware and software environments. Skilled in Kubernetes orchestration, automation, open source contributions, tooling development, and observability. I thrive in dynamic teams, enjoy tackling unique challenges, and continuously strive to learn and grow.",
"highlights": [
"DevOps - keen understanding of operating systems, and the frameworks which drive consistent testable deployments (Ansible, Salt, Puppet).",
"Deep understanding, learned through micro-service development and deployment, of build pipeline implementation.",
@ytjohn
ytjohn / README.md
Last active January 2, 2023 14:51
Allstar Supermon External Monitoring

HamVoip Node Metrics

This is my notes on setting up node metrics to prometheus from an Allstar HamVoip system. This is very much a work in progress and subject to change. I used to export the data as JSON and have telegraf import into influxdb. My new setup exports as prometheus compatible metrics and uses grafan-agent to push the metrics into prometheus. This allows one to utilize the free grafana cloud. I'm looking in the future to have a version that can automatically creates metrics for every

#!/opt/stackstorm/st2/bin/python
import pymongo
import mongoengine
from pymongo.errors import OperationFailure
from pymongo.errors import ConnectionFailure
from pymongo.errors import ServerSelectionTimeoutError
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
@ytjohn
ytjohn / grafana-dashboard.json
Last active March 19, 2024 22:00
waterfurnace dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@ytjohn
ytjohn / smartthingsbridge.log
Last active February 2, 2019 12:55
smart things bridge
info: Incoming message from SmartThings: smartthings/living room couch/button = pushed
info: Incoming message from SmartThings: smartthings/living room couch/button = pushed
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed
info: Incoming message from SmartThings: smartthings/piano switch/button = double
info: Saving current state
info: Incoming message from SmartThings: smartthings/Lance room inside/temperature = 68
info: Incoming message from SmartThings: smartthings/sink button 2/temperature = 68
info: Incoming message from SmartThings: smartthings/sink button 2/temperature = 65
@ytjohn
ytjohn / diskspace.md
Last active August 16, 2018 13:32
time machine space usage

My laptop was filling up on space. I couldn't track it down for a long time.

jh1:~ ytjohn$ df -h
Filesystem                                                Size  Used Avail Use% Mounted on
/dev/disk1s1                                              932G  797G  134G  86% /

IMAGE

built from master commit
jh1:signal ytjohn$ ./signal-back-v0.1.6-3-g293bfee-dirty format -v -P pass -o backup.xml -v signal-2018-07-24-14-59-45.backup
2018/08/10 08:46:53 MMS export not yet supported
2018/08/10 08:46:53 Panicked: runtime error: slice bounds out of range
2018/08/10 08:46:53 [frame: starting at 63283993, size 0; 36689266 remaining in file]
@ytjohn
ytjohn / fmpundit.ipynb
Last active July 23, 2018 11:45
code test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ytjohn
ytjohn / vault-statsd-mapping.conf
Created May 23, 2018 18:22 — forked from tam7t/vault-statsd-mapping.conf
Example vault statsd prometheus exporter mapping
vault.barrier.*
name="vault_barrier"
method="$1"
vault.consul.*
name="vault_consul"
method="$1"
vault.route.*.*
name="vault_route"
@ytjohn
ytjohn / table.md
Created April 4, 2018 18:21
table

+-------------------+--------+-----------+-------------------------------+ | name | secret | encrypted | expire_timestamp | +-------------------+--------+-----------+-------------------------------+ | certainty.token | True | True | Thu, 05 Apr 2018 18:17:18 UTC | | certainty.url | False | False | | | network.password | True | True | Thu, 05 Apr 2018 18:17:18 UTC | | network.username | False | False | | | threaddb.password | True | True | Thu, 05 Apr 2018 18:17:19 UTC | | threaddb.token | True | True | Thu, 05 Apr 2018 18:17:20 UTC | | threaddb.url | False | False | |