Skip to content

Instantly share code, notes, and snippets.

View iznaut's full-sized avatar

izzy kestrel iznaut

View GitHub Profile
@intrnl
intrnl / bluesky-delete-all-post.ts
Last active April 14, 2025 20:12
script to delete all posts from a Bluesky account
import { Agent } from '@intrnl/bluesky-client/agent';
import type { UnionOf } from '@intrnl/bluesky-client/atp-schema';
import { pRateLimit } from 'p-ratelimit';
const agent = new Agent({ serviceUri: 'https://bsky.social' });
const limit = pRateLimit({ concurrency: 3, interval: 1000, rate: 5 });
const getRecordId = (uri: string) => {
const idx = uri.lastIndexOf('/');
@matfax
matfax / .zshrc
Created March 6, 2023 13:38
Sudo authentication with Windows 1Password CLI on Ubuntu WSL
# ....
alias sudo="sudo -A"
@drewkerr
drewkerr / get-focus-mode.js
Last active June 4, 2025 00:14
Read the current Focus mode on macOS Monterey (12.0+) using JavaScript for Automation (JXA)
const app = Application.currentApplication()
app.includeStandardAdditions = true
function getJSON(path) {
const fullPath = path.replace(/^~/, app.pathTo('home folder'))
const contents = app.read(fullPath)
return JSON.parse(contents)
}
function run() {
@petersvp
petersvp / SteamQueryBatchKey.js
Created February 3, 2021 20:30
Batch Query Steam Keys for activation on SteamWorks
// 1. GO TO SteamWorks, into the Query CD Key page, here: https://partner.steamgames.com/querycdkey/
// 2. Fill in your keys below:
// 3. Go to DevTools, Console, and paste all of this here there!
// 4. Report will be printed to the console.
keys = `
0ZQR4-N0H7K-AEJ77
D05V5-P47AP-4ET3Q
GGJZ5-ZN0BR-F74C5
FWZP4-2IXHB-GYV3A