Skip to content

Instantly share code, notes, and snippets.

View aaronjamt's full-sized avatar

Aaron Tulino aaronjamt

  • 03:18 (UTC -07:00)
View GitHub Profile
@aaronjamt
aaronjamt / README.md
Created May 30, 2026 04:25
Export all custom emojis from all Discord servers

To use this, open the developer console, enable pasting, and copy+paste the script. Open the emoji picker (make sure all the servers you want included are un-collapsed) and scroll to the top. Leave it open and run getEmojis(); in the console. It will scroll through the list, moving down every 750ms. Once it either reaches the bottom, or you're satisfied with the number collected, run finished(); and copy the output. Paste it into a file in an empty folder and execute it as a Linux shell script (/bin/bash or similar). It will create a folder for each server, then download all of their emojis.

Based on https://gist.github.com/junebug12851/8c5c42587a824c22a79359fb56b4023d

@aaronjamt
aaronjamt / rp2040_persistent_flash_storage.c
Last active January 12, 2025 10:19
RP2040 persistent storage using flash memory (Arduino)
#include "hardware/flash.h"
// The two primary functions that you would use are:
// bool read(uint8_t *output, uint8_t size);
// void write(uint8_t *data, uint8_t size);
// The read(...) function will either fill the *output buffer
// with size bytes (and return true), or will return false if
// there is no saved data available to be read.
@aaronjamt
aaronjamt / forward.py
Created December 8, 2023 02:23
[Python] Forward all packets between open TCP sockets
import socket, threading, select
def _forwardBetween(*sockets, endOnAnySocketClose=True, daemonize=True):
def _handler(sockets):
sockets = list(sockets)
print(sockets)
# Set all sockets to nonblocking so we don't have to wait for them
[socket.setblocking(False) for socket in sockets]
while True:
socks = select.select(sockets, [], sockets)[0]
@aaronjamt
aaronjamt / ID115 Protocol.txt
Created April 15, 2020 21:20
ID115 Watch BLE Protocol
-------------Camera fields---------------
Enable:
WRITE 06 02 00 00 00 00 => 0af6
Disable:
WRITE 06 02 01 00 00 00 => 0af6
Shutter pressed:
READ 07 01 06 00 00 00 <= 0af7