Skip to content

Instantly share code, notes, and snippets.

View monodot's full-sized avatar
💭
I am working very hard

Tom Donohue monodot

💭
I am working very hard
View GitHub Profile
@monodot
monodot / CLAUDE.md
Last active August 3, 2026 10:18
Claude configuration to make it write more like I would

Always call me DORIS (in capitals).

Communication style

  • Write in plain English, preferably in the active voice.

  • Write for a lower reading age. You are responding to a request, not writing a scientific paper.

  • Keep responses concise, don't write an entire paragraph of text, when a single sentence would work just as well. It takes time for humans to read text. Adding extra paragraphs, or asides, can add a lot of distraction to the reader.

@monodot
monodot / basic_countdown_timer_info.md
Last active September 24, 2024 21:46
Basic Countdown Timer - Support info & Privacy Policy

Basic Countdown Timer App: Support & Privacy Policy

Support information

For support with the app, please contact @monodot on X.

Privacy Policy

We do not collect, use, save, or have access to your personal data in Basic Countdown Timer.

# Source: k8s-monitoring/templates/platform_specific/openshift/security-context-constraint.yaml
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: grafana-k8s-monitoring-alloy
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
{
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = [
"tag:GetResources",
"cloudwatch:GetMetricData",
"cloudwatch:ListMetrics",
"apigateway:GET",
@monodot
monodot / dashboard.json
Created January 5, 2024 16:47
Example basic dashboard for auto import
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@monodot
monodot / values.yaml
Created November 3, 2023 13:09
Example values.yaml for Grafana Agent to scrape Pod logs from Kubernetes and ship to Loki
agent:
mounts:
varlog: true
configMap:
content: |
logging {
level = "info"
format = "logfmt"
}
all
analytics
cache-generation-loader
compactor
distributor
ingester
ingester-querier
querier
query-frontend
query-scheduler
{
"transactions": [
{
"transaction_id": "a6fbc63d-27ae-4d8a-bd01-2e879c82c122",
"timestamp": "2023-07-26 10:15:30",
"sender": "0x3fC2b08dD64eFe84F4E98583F66fAa3105581D8a",
"receiver": "0x1B74d2F8947A9c3b32a8C35F44E28e1395d18b98",
"amount": 0.025,
"currency": "ETH",
"hash": "f3f57bf8b6a5f6c1a2dd55a276d679ccdf957ed234521e60784d1a18f3ea6c43"
@monodot
monodot / subst.sh
Created January 20, 2023 16:09
Templatey
#!/bin/sh
# cat <<EOF | ./subst.sh zzzlucy
# name=Lucy
# weather="Good, how about you?!"
# family=Smith
# EOF
set -a
@monodot
monodot / systemd_service_hardening.md
Created September 23, 2022 12:12 — forked from ageis/systemd_service_hardening.md
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict