Skip to content

Instantly share code, notes, and snippets.

View platinummonkey's full-sized avatar
🏋️

Cody Lee platinummonkey

🏋️
View GitHub Profile
@platinummonkey
platinummonkey / conf.yaml
Last active May 27, 2025 21:37
RedSea Reefmat Datadog Check
init_config: {}
instances:
- url: http://192.168.1.100/dashboard # Replace with your device's IP
timeout: 5
tags:
- location:reef_room
- tank:310g_display
- system:redsea_reefmat

Proto Type Counter

buf.build protobuf type counter for their pricing so you have an understanding what the costs will be

go build -o protocounter .

protocounter /path/to/your/directory

@platinummonkey
platinummonkey / job_def.yaml
Created June 23, 2023 20:05
fast github pr diffs with deep history without full cloning or iterative enrichment
name: SOMETHING
on:
pull_request:
types:
- opened
branches:
- main
jobs:
@platinummonkey
platinummonkey / README.md
Last active February 21, 2023 18:24
Neptune Apex Datadog Integration

my personal way to collect telemetry from my neptune apex controller

@platinummonkey
platinummonkey / git-port-with-history.md
Last active November 17, 2022 03:29
Porting Code from repo to another repo while retaining git history
  1. Prepare the source repository Clone source-repo (make a copy, don’t use your already existing one)

cd /tmp git clone [email protected]:yourorg/source-repo.git cd source-repo

Delete the link to the original repository to avoid accidentally making any remote changes

git remote rm origin

@platinummonkey
platinummonkey / dashboard.json
Created June 18, 2020 16:13
speedtest dashboard
{"title":"Speedtest","description":"","widgets":[{"id":5804509413528924,"definition":{"type":"group","layout_type":"ordered","widgets":[{"id":1898161289475790,"definition":{"type":"check_status","title":"Speedtest Run Status","check":"speedtest.run","grouping":"check","group":"env:dev,environment:dev","group_by":["env"],"tags":["*"]}},{"id":1652099405071764,"definition":{"type":"timeseries","requests":[{"q":"avg:speedtest.packet_loss{$env,$isp,$host} by {isp}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"yaxis":{"label":"","scale":"linear","min":"auto","max":"auto","include_zero":true},"title":"Packet Loss","show_legend":false,"legend_size":"0"}},{"id":8362709033854442,"definition":{"type":"timeseries","requests":[{"q":"avg:speedtest.ping.jitter{$env,$isp,$host} by {isp}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"yaxis":{"label":"","scale":"linear","min":"auto","max":"auto","include_zero":true},"
@platinummonkey
platinummonkey / custom_chrome_tz.sh
Created December 2, 2019 16:07
Chrome Custom Timezone
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@platinummonkey
platinummonkey / test_dial.go
Created November 26, 2019 22:14
Golang Test Dial DNS
package main
// GOOS=linux GOARCH=amd64 go build -o testdial test_dial.go
import (
"flag"
"fmt"
"net"
"time"
)