Skip to content

Instantly share code, notes, and snippets.

View jongan69's full-sized avatar
🎯
WEB3D

Jongan69 jongan69

🎯
WEB3D
View GitHub Profile
@jongan69
jongan69 / pagespeed.js
Created November 18, 2025 04:06
CLI Github runnable action for observing page speed and seo
#!/usr/bin/env node
/**
* PageSpeed Insights CLI Tool (Node.js)
* No API key required • Supports mobile & desktop
* Works in GitHub Actions
*/
import https from 'https';
import { config } from 'dotenv';
@jongan69
jongan69 / optimize-logo.sh
Created November 18, 2025 04:05
Bash script for optimizing logo in public folder of app
#!/bin/bash
# Script to optimize logo.png for web performance
# This script requires ImageMagick or similar tools
LOGO_FILE="public/logo.png"
OUTPUT_FILE="public/logo-optimized.png"
echo "Optimizing logo.png for web performance..."
@jongan69
jongan69 / youtube-to-transcript-text.js
Created October 26, 2025 02:52
A browser console log script for getting the transcript from a video
(() => {
// Select all transcript segments
const segments = document.querySelectorAll('ytd-transcript-segment-renderer');
if (!segments.length) {
console.error("❌ No transcript segments found. Make sure the transcript panel is open.");
return;
}
// Extract only the text from each segment
@jongan69
jongan69 / pumpfun-chat-tts.js
Created September 17, 2025 16:59
PUMPFUN TTS
/**
* Pumpfun Chat → ElevenLabs TTS Bot with Queue
*
* Features:
* - Automatically converts ANY message in chat to speech
* - Uses default voice for all messages
* - Skips bot's own messages to avoid loops
* - Filters out very short messages and non-text content
* - Queues multiple TTS requests for smooth playback
*
@jongan69
jongan69 / pumpfun-livestream-chat-websocket.js
Created September 17, 2025 02:30
Stream Pumpfun Chat Messages
/**
* Custom Reverse-Engineered Pump Chat Client
*
* This is a custom implementation based on reverse engineering the pump-chat-client
* library. It demonstrates understanding of the Socket.IO protocol used by pump.fun
* for livestream chat communication.
*
* Key Features:
* - WebSocket connection to pump.fun chat servers
* - Socket.IO protocol implementation
@jongan69
jongan69 / Principles.md
Created August 21, 2025 10:15
Good Prompts

Make sure the following code follows these principles for clean, efficient, and maintainable code.

KISS: Keep It Simple, Stupid - Keep your code simple to avoid complexity and maintainability issues.

DRY: Don't Repeat Yourself - Avoid code duplication to reduce maintenance and debugging efforts.

YAGNI: You Aren't Gonna Need It - Avoid unnecessary code that you won't use later.

SOLID: Single Responsibility Principle, Open/Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle - A framework for building maintainable and scalable software.

@jongan69
jongan69 / parking_ticket_search.py
Last active August 16, 2025 01:52
I fucking hate Miami Beach
#!/usr/bin/env python3
"""
Final Working Parking Ticket Search - JSON Output with All Fields
"""
import requests
from bs4 import BeautifulSoup
import json
def search_parking_tickets(tag_number="62etid"):
@jongan69
jongan69 / code.gs
Created August 14, 2025 01:31
Alpaca Portfolio Table for Google Sheets AppScript
function updatePortfolioAndPieChart() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Positions");
// --- CONFIG ---
var isPaper = sheet.getRange("I1").getValue();
var apiKey = sheet.getRange("I2").getValue();
var apiSecret = sheet.getRange("I3").getValue();
if (!apiKey || !apiSecret) {
throw new Error("Please input an API key and secret key in I2 & I3.");
Model Key Storage Trust Level Complexity
Full Self-Custody (LDK/LND mobile) Device 🔒 Minimal trust 🧠 Complex
Remote Node (LNC, Zeus) External Node 🟡 Medium 😌 Easy
Hosted Node (Voltage) API-auth + macaroon 🟡 Medium-high ⚡ Fastest
Tool What it Does Notes
ldk-node-rn Run LDK Lightning node in RN Full non-custodial wallet support
react-native-lightning Wrap LND in React Native Uses Neutrino for on-chain sync
@lightninglabs/lnc-rn Secure pairing to remote LND Super easy to use
tapd Daemon for Taproot Assets Backend only (for now)
voltage.cloud Hosted LND + tapd Dev-friendly with great docs