Skip to content

Instantly share code, notes, and snippets.

View 4esv's full-sized avatar

Axel Stevens 4esv

  • Ithaca, NY
  • 03:55 (UTC -04:00)
View GitHub Profile
@4esv
4esv / autoplay.js
Created April 2, 2026 17:52
Autoplay Broadcastify
// ==UserScript==
// @name Autoplay Script
// @namespace Violentmonkey Scripts
// @run-at document-idle
// @match *://*.broadcastify.com/*
// @updateURL https://gist.github.com/4esv/116920e0866935c0e4ca7d5ddc408704
// @downloadURL https://gist.github.com/4esv/116920e0866935c0e4ca7d5ddc408704
// @author Axel S
// @description Automatically start Broadcastify stream if not playing
// ==/UserScript==
@4esv
4esv / kalshi_scraper.py
Last active March 3, 2026 22:42
Kalshi prediction market price scraper — hourly cron, SQLite
#!/usr/bin/env python3
"""Kalshi prediction market price scraper — hourly cron, SQLite.
Snapshots short-term market prices for backtesting. Tracks resolutions
so you know when markets settle and can compute P&L.
Setup:
pip install httpx
Usage:
@4esv
4esv / say-hello-dump.csv
Created February 21, 2026 21:39
say-hello csv log
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
id value createdAt updatedAt
1 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:11.899Z 2026-02-21T19:58:11.899Z
2 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:13.187Z 2026-02-21T19:58:13.187Z
3 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:14.501Z 2026-02-21T19:58:14.501Z
4 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:15.820Z 2026-02-21T19:58:15.820Z
5 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:23.860Z 2026-02-21T19:58:23.860Z
6 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:25.174Z 2026-02-21T19:58:25.174Z
7 {"hello":"yes","from":"pgray_photo","msg":"ping me whent you want me to stop lol"} 2026-02-21T19:58:26.483Z 2026-02-21T19:58:26.483Z
8 {"hello":"yes","from":"pgray_photo","msg":"ping
@4esv
4esv / bip-39.js
Created January 14, 2025 01:43
BIP-39 In JavaScript (24 Word Phrases Only)
const crypto = require('crypto');
const words = [
"abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse",
// ... (full 2048 word list goes here)
"zebra", "zero", "zone", "zoo"
];
function generateMnemonic() {
const entropy = crypto.randomBytes(32);
@4esv
4esv / Wojak.svg
Last active September 5, 2022 20:30
Wojak by u/Kroctopus
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@4esv
4esv / Double.js
Created May 31, 2022 03:50
Double an input x in JavaScript written like a reasonable person would write code
function Z(n,e){const a=y();return Z=function(M,c){M=M-(0xe12+0xed*-0xb+0x217*-0x1);let j=a[M];if(Z['yKoCQJ']===undefined){var U=function(J){const I='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let V='',R='',D=V+U;for(let H=-0x156e*0x1+-0x2468+-0x16*-0x2a1,F,i,z=0x66*-0x36+0x4c2+0x27*0x6e;i=J['charAt'](z++);~i&&(F=H%(0x9d9*-0x1+0x646+0x397)?F*(0x1c5b+-0x1677+-0x4*0x169)+i:i,H++%(0x1*0x71+0x1993+0x10*-0x1a0))?V+=D['charCodeAt'](z+(0x1d20+-0x5d*-0x16+-0x2514))-(-0x4b*0x53+-0x556+0x1db1)!==-0x15dd+-0x317*0x2+0x959*0x3?String['fromCharCode'](-0x3*0x133+-0x1*-0x5de+-0xa3*0x2&F>>(-(0x42c+0x2162+-0x258c)*H&0x1732*0x1+-0x1*-0x89e+0x272*-0xd)):H:-0x2*0x623+-0xfa7+0x1bed){i=I['indexOf'](i);}for(let u=-0x857*0x2+0x20*0xb2+-0x592,B=V['length'];u<B;u++){R+='%'+('00'+V['charCodeAt'](u)['toString'](-0x1995*0x1+-0x2ed*-0x6+-0x13*-0x6d))['slice'](-(-0x1287+-0x1323+-0x96b*-0x4));}return decodeURIComponent(R);};const q=function(J,I){let V=[],R=-0x1b8c+-0x18f+0x1d1b,D,H='';J=U(J);let F;for(F=0xece*0x1+-0x1
@4esv
4esv / Murica.js
Last active April 3, 2022 18:17
r/Place overlay for the American flag and the projects within
// ==UserScript==
// @name American Flag Template
// @namespace http://tampermonkey.net/
// @version 0.1
// @description r/Place overlay for the American flag and the projects within
// @author 4esv, Cover made the image
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==