Skip to content

Instantly share code, notes, and snippets.

This tool should be used whenever a user expresses interest in receiving Anthropic or Claude stickers, swag, or merchandise. When triggered, it will display a shipping form for the user to enter their mailing address and contact details. Once submitted, Anthropic will process the request and ship stickers to the provided address.

Common trigger phrases to watch for:

  • "Can I get some Anthropic stickers please?"
  • "How do I get Anthropic swag?"
  • "I'd love some Claude stickers"
  • "Where can I get merchandise?"
  • Any mention of wanting stickers or swag

The tool handles the entire request process by showing an interactive form to collect shipping information.

@leumasme
leumasme / info.md
Created January 6, 2025 16:58
Debugging the new NVIDIA App

Debugging the Nvidia CEF processes (Nvidia Overlay or Nvidia App) can be achieved by editing C:\Program Files\NVIDIA Corporation\NVIDIA app\CEF\Resources file NVIDIA (app/overlay).json to add the flag nv-remote-debugging-port=XXXX (pick your port), then using chrome://inspect to connect.

The Nvidia Overlay performs RPC calls by calling into the native function window.cefQuery with data like '{"command":"QUERY_IPC_EXTENSION_MESSAGE","system":"CrimsonNative","module":"ShareServer","method":"EnableInstantReplay","payload":{"enable":true}}' to enable instant replay

// go to grade graph page and paste into console to hide own grade for screenshots
document.querySelector(".yourgrade").remove()
Chart.instances[0].data.datasets[0].backgroundColor.fill("#0068b3")
Chart.instances[0].update()
@leumasme
leumasme / 0_info.md
Last active January 17, 2024 15:54
Javascript: Array.down() and Array.up()

Array.up() and Array.down() let you do semi-basic array processing without nesting Array.map() calls.
This is a silly thing I made in 20 minutes because I thought it would be cursed. You probably shouldn't actually use it.
Somewhat inspired by vectorized functions in python.

@leumasme
leumasme / extractor.js
Created May 31, 2023 21:00
Twitter API GraphQL ID List
// Add a webpack module to get the module export cache
(webpackChunk_twitter_responsive_web.push([[''],{},e=>{
window.moduleCache = [];
for(let c in e.c) {
window.moduleCache.push(e.c[c]);
}
}]));
// Find API definitions in the module cache
window.moduleCache.filter(x=> typeof x.exports == "object" && "queryId" in x.exports).map(x=>[x.exports.operationName,x.exports.queryId])
@leumasme
leumasme / a_version.md
Last active April 24, 2023 00:59
minecraft java edition required java editions according to the manifest files
Range Start Range End Java Version
1.18 1.19.4 17
1.17 1.17.1 16
1.0 1.16.5 8
@leumasme
leumasme / words.txt
Created March 30, 2023 23:18
subdomain scan wordlist
This file has been truncated, but you can view the full file.
mail
mail2
www
ns2
ns1
blog
localhost
m
ftp
mobile
@leumasme
leumasme / promise_fulfilled_polyfill.js
Created October 6, 2021 10:06
Promise.fulfilled polyfill, to check if a Promise was completed
Promise = new Proxy(Promise, {
construct(target, args) {
let p = new target(...args)
p.fulfilled = false;
p.then(()=>p.fulfilled = true)
p.catch(()=>p.fulfilled = true)
return p;
}
})
@leumasme
leumasme / onbeforescriptexecute.js
Last active July 4, 2022 18:46 — forked from maple3142/onbeforescriptexecute.js
polyfill of 'beforescriptexecute' event
// 'beforescriptexecute' event with loadPayloadSync
// original version: https://gist.github.com/jspenguin2017/cd568a50128c71e515738413cd09a890
;(function () {
'use strict';
class Event {
constructor(script, target) {
this.script = script;
this.target = target;