Skip to content

Instantly share code, notes, and snippets.

Monitoring as byproduct of application
CM - Ansible, Chef, Puppet, Salt, Electric Commander
Public vs. Private Cloud
Vagrant - pipeline/process vs Docker
Key Management
APM - FogLight, New Relic, Appneta
How to deploy application? separate repo
How much testing and how to test?
Rundeck tool
Consul, Serf (Service Discovery)
@techberet
techberet / hotspot_shutdown.py
Created August 24, 2023 03:31
Inseego M2000 Hotspot Shutdown Script
#!/usr/bin/env python3.10
# quick and dirty and semi-simple script which shutsdown an inseego M2000 hotspot
# also can send information on the usage stats to DynamoDB,
# and if battery is low can send a PushOver notification to
# encourage you to plug it in.
# you need to create a local_secrets.py which has all your secrets in it (password, aws, pushover, etc).
# should be run periodically (crontab or systemd), and probably should also gate it on a successful ping to 192.168.1.1
import requests
import re
import hashlib