Skip to content

Instantly share code, notes, and snippets.

View StellarStoic's full-sized avatar
:octocat:
Interested in everything interesting

StellarStoic StellarStoic

:octocat:
Interested in everything interesting
View GitHub Profile
@StellarStoic
StellarStoic / The AI generated notes about my nostr note1 & nevent decoder
Last active March 13, 2025 18:03
Nostr Nip-19 note1 and nevent playground in JavaScript. I needed a note1 & nevent1 decoder like the fiatjaf's NAK tool. There's not many how-to's about encoding, decoding bech32-encoded entities
Workflow Notes
1. Objective
Goal:
Build a converter that can transform Nostr event identifiers between three formats:
HEX: A 64‑character hexadecimal string (32 bytes).
note1: A human‑friendly display format using standard bech32 encoding.
nevent: A format using bech32m that includes TLV (type–length–value) metadata (such as relay URIs, public key, and event kind).
2. Challenges and Struggles
Different Encoding Schemes:
@StellarStoic
StellarStoic / delete-likes-from-twitter.md
Created August 3, 2025 17:54 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@StellarStoic
StellarStoic / deleteGooglePhotosOneByOne.js
Created October 26, 2025 22:40
Delete Google photos one by one programmatically
// Infinite slow google photos Delete Loop which does the job.
// Visit photos.google.com and open the first image full screen.
// Paste this script in a DEV console.
// When you hit enter, the script will start deleting photos one by one.
// You can stop it with stopDeleteLoop() or simply refresh the page.
// To slow down or speed up the deletion process, play with timing. (Current settings provided me good balance without errors)
// Images are only deleted from Google photos and any duplicates on other devices should not be affected.
// Use at your own risk and create a backup of your data first by visiting https://takeout.google.com/
(function() {