Skip to content

Instantly share code, notes, and snippets.

View laubstein's full-sized avatar

Thiago Laubstein laubstein

View GitHub Profile
@cletusw
cletusw / .eslintrc
Last active October 18, 2025 21:45
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@digilist
digilist / delay.sh
Created June 2, 2015 14:29
Delaying network traffic to a specific IP
#!/bin/bash
interface=lo
ip=10.0.0.1
delay=100ms
tc qdisc add dev $interface root handle 1: prio
tc filter add dev $interface parent 1:0 protocol ip prio 1 u32 match ip dst $ip flowid 2:1
tc qdisc add dev $interface parent 1:1 handle 2: netem delay $delay
@rkok
rkok / uptime-kuma-cli.py
Created March 24, 2026 14:00
Uptime Kuma "API" CLI
#!/usr/bin/env python3
"""
uptime-kuma-cli.py — Manage Uptime Kuma monitors via direct SQLite DB manipulation.
Workflow: stop container → write DB → start container.
Reads (--list, --export) do NOT stop/start the container — DB is opened read-only.
Usage:
python3 uptime-kuma-cli.py --list
python3 uptime-kuma-cli.py --add '{"name": "[vps01] foo.nl", "url": "https://foo.nl"}'