Skip to content

Instantly share code, notes, and snippets.

View bboerst's full-sized avatar

boerst bboerst

  • San Francisco, CA
View GitHub Profile
@bboerst
bboerst / bitaxe_prometheus_json_exporter.txt
Last active March 26, 2024 17:45
bitaxe prometheus-json-exporter configuration
# prometheus-json-exporter: https://github.com/prometheus-community/json_exporter
--------------
# Use this Prometheus scrape config:
- job_name: bitaxe
metrics_path: /probe
static_configs:
- targets:
# List each of your bitaxes here
@bboerst
bboerst / keybase.md
Last active February 28, 2023 19:47
keybase.md

Keybase proof

I hereby claim:

  • I am bboerst on github.
  • I am boerst (https://keybase.io/boerst) on keybase.
  • I have a public key ASDifqk9xU-8OGpHIl48ergUq-U3taV-QLjzKWPJ5iIdfgo

To claim this, I am signing this object:

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",

Keybase proof

I hereby claim:

  • I am bboerst on github.
  • I am boerst (https://keybase.io/boerst) on keybase.
  • I have a public key whose fingerprint is 9A71 A96E C96B B57E E4ED 0149 A8EE FAED 7B66 3729

To claim this, I am signing this object:

@bboerst
bboerst / WaitForElasticBeanstalkToFinish.ps1
Created June 16, 2016 13:50
Powershell script that could be included within a CI solution that waits for an ElasticBeanstalk deployment to complete and alerts if there are errors.
$applicationname = "ElasticBeanstalkApplicationName"
$environmentname = "EnivornmetName-staging"
$region = "us-west-2"
$delayseconds = 15
$timeoutminutes = 30
$successfulmessage = "Environment update completed successfully."
$scriptstart = Get-Date
do
{
@bboerst
bboerst / clean-chef-server.py
Created May 25, 2016 13:22
In an AWS autoscaling environment, this Lambda function will automatically remove Chef nodes that are no longer in service. This function is meant to run at periodic intervals.
from chef import autoconfigure, Node
import chef
import boto3
def lambda_handler(event, context):
ec2c = boto3.client('ec2')
api = chef.autoconfigure()
chef_nodes = {}