Skip to content

Instantly share code, notes, and snippets.

@jongan69
jongan69 / openclaw.json
Created March 23, 2026 12:59
For when I have a good setup
{
"update": {
"channel": "stable",
"auto": {
"enabled": true
}
},
"secrets": {
"providers": {
"env_file": {
@jongan69
jongan69 / claude_test.sh
Created March 20, 2026 05:31
Bash Script for checking if api key is working
API_KEY=$(/usr/bin/security find-generic-password -a jon -s openclaw-anthropic-key -w) && curl -s https://api.anthropic.com/v1/messages -H "x-api-key: $API_KEY" -H "anthropic-version: 2023-06-01" -H "content-type: application/json" -d '{"model":"claude-haiku-4-5-20251001","max_tokens":10,"messages":[{"role":"user","content":"hi"}]}'
@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.");