Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 14, 2026 13:59
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@bensteadybow
bensteadybow / gist:4e29dfc15545098dfc73e053febbeef0
Created February 23, 2026 17:50
This is the large, complex example Mermaid JSON for an AI Receptionist - genericised from a real production agent.
```mermaid
flowchart TB
%% ============================================
%% CALL INTRODUCTION & EARLY TRIAGE
%% ============================================
start_call([Call starts — greet with opening line]) -->
early_triage{EARLY TRIAGE: What type of call is this?}
early_triage -->|Caller submitted a form or email and is chasing a response| form_chase
@agzam
agzam / config.json
Last active March 14, 2026 13:39
elisp eval MCP to run via emacsclient, written in babashka
// if used with ECA, elisp-eval-server.bb needs to be
// copied into ~/.config/eca/tools and the following
// has to be added into the ~/.config/eca/config.json:
"mcpServers": {
"elisp-eval": {
"command": "/Users/ag/tools/elisp-eval-server.bb"
}
},
@chrislee973
chrislee973 / twitter_bookmarks.js
Last active March 14, 2026 13:37
Liberate your twitter bookmarks
// script modified and adapted from https://gist.github.com/8bitgentleman/de939b391d5d27ee310a0912b2ccba85
(() => {
if (
!location.href.startsWith("https://twitter.com/i/bookmarks") &&
!location.href.startsWith("https://x.com/i/bookmarks")
) {
console.log(location.href);
alert(
"This bookmarklet should only be used on your twitter bookmarks page."
);
pm list packages -e -3 | grep -E "zalo|facebook|gm|telegram|instagram|ugc|discord|whatsapp|twitter|mastodon|sms|reddit|wechat" | sed -e "s/^package://" >/data/local/tmp/b.txt
wlist=""
for word in $(cat /data/local/tmp/b.txt); do wlist="$wlist$word;"; done
echo $wlist
cmd settings put system millet_white $wlist
cmd settings put global low_power_sticky 1
cmd settings put secure miui_optimization 0
cmd settings put secure sync_on_wifi_only 0
cmd settings put system background_power_saving_enable 0
cmd settings put system deviceLevelList "v:1,c:3,g:3"
@JeffWouters
JeffWouters / gist:52ddc5809dd6962ae899e8ba112e1349
Created November 26, 2025 06:29
Azure - Scan for pinned certificates
<#
.SYNOPSIS
Scan an Azure subscription for resources using certificate pinning–related configurations.
.NOTES
Requires: Az PowerShell modules
#>
# Login if needed
if (-not (Get-AzContext)) {
Connect-AzAccount
blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign, e.g., a scene
or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double
press, long press and press and rotate.
Original blueprint by seamus65 (https://gist.github.com/seamus65/939a147634942dd885c8704334627f93).
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@daliborgogic
daliborgogic / package.json
Last active March 14, 2026 13:01
Pdfmake on Cloudflare Workers. Total Upload: 2324.17 KiB / gzip: 983.62 KiB
{
"type": "module",
"scripts": {
"dev": "wrangler dev --port 3000 worker.mjs",
"deploy": "wrangler deploy"
},
"devDependencies": {
"pdfmake": "^0.3.0-beta.8",
"wrangler": "^3.63.1"
}