Skip to content

Instantly share code, notes, and snippets.

@latenssi
latenssi / claude-code-ntfy-push-notifications.md
Last active February 13, 2026 09:04
Push notifications for Claude Code via ntfy.sh - get notified on phone/laptop when Claude needs input or finishes a task

Push Notifications for Claude Code via ntfy.sh

Get push notifications on your phone, laptop, or desktop when Claude Code needs your input or finishes a task. Uses ntfy.sh — a free, open-source push notification service with no account required.

Prerequisites

  • curl and jq installed (sudo apt install curl jq)
  • ntfy app on your phone (Android / iOS) and/or the web app

Step 1: Pick a Topic Name

@latenssi
latenssi / claude-code-wsl-toast-notifications.md
Last active June 4, 2026 01:03
Windows toast notifications for Claude Code in WSL2 - get notified when Claude needs input or finishes a task

Windows Toast Notifications for Claude Code in WSL2

Get native Windows 10/11 toast notifications when Claude Code needs your input or finishes a task.

Prerequisites

  • Windows 10/11 with WSL2
  • powershell.exe accessible from WSL (default in most setups)
  • jq installed in WSL (sudo apt install jq)
@latenssi
latenssi / adding-tailscale-to-edgerouter.md
Created February 23, 2022 10:43 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@latenssi
latenssi / boto3-add-cache-control.py
Last active January 15, 2021 11:16
Add a CacheControl setting to S3 compatible endpoints
from boto3 import session
ACCESS_ID = "XXX"
SECRET_KEY = "XXX"
REGION = "XXX"
BUCKET = "XXX"
session = session.Session()
client = session.client('s3',
region_name=REGION,
@latenssi
latenssi / container.sh
Created April 10, 2019 07:28
Healthchecks
#!/bin/bash
SERVICE_NAME=
FAIL_URL=
OK_URL=
if [ -z `docker ps -q --no-trunc | grep $(docker-compose ps -q $SERVICE_NAME)` ];
then curl -fsS --retry 3 $FAIL_URL;
else curl -fsS --retry 3 $OK_URL;
fi
@latenssi
latenssi / hc-cmd.py
Created April 10, 2019 06:54
Generate healthchecks
from __future__ import print_function
import os
import json
try:
from urllib.request import Request, urlopen # Python 3
except ImportError:
from urllib2 import Request, urlopen # Python 2
const IPFS = require("ipfs");
const OrbitDB = require("orbit-db");
const ipfs = new IPFS({
repo: "./ipfs",
EXPERIMENTAL: {
pubsub: true
}
});
@latenssi
latenssi / ecr-helper.md
Last active December 4, 2018 08:59
AWS ECR helper
  1. Clone the git repository https://github.com/awslabs/amazon-ecr-credential-helper.git

  2. cd to the cloned folder "amazon-ecr-credential-helper"

  3. Run the command on terminal "make docker" (it will create the binary "./bin/local/docker-credential-ecr-login")

  4. Copy this binary to /usr/bin with the command " sudo cp ./bin/local/docker-credential-ecr-login /usr/bin/docker-credential-ecr-login

  5. Create or modify the docker config.json file available at /.docker/config.json with the below content

@latenssi
latenssi / edit_file.sh
Last active August 16, 2018 10:33
Rmate remote editing
rmate test.txt
@latenssi
latenssi / timestamp.txt
Created June 6, 2017 05:55
Linux timestamps
date --date='TZ="Europe/London" 12:00 tomorrow' +%s%N | cut -b1-13