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" \