Skip to content

Instantly share code, notes, and snippets.

@ps173
ps173 / switch.sh
Created August 5, 2026 13:23
Switch between workspaces in the same bench apps folder
#!/usr/bin/env zsh
rm -f $2 # -f suppresses errors
ln -s $1 $2
bench --site all clear-cache
bench restart
@ps173
ps173 / bootleg.js
Last active July 24, 2026 07:22
shit framework with reactivity
export const init = (selector, components) => {
const app = document.querySelector(selector);
const newElement = render(components);
app.append(newElement);
};
let listener = null;
export const signal = (value) => ({
subs: new Set(),
@ps173
ps173 / tls_peet_ws.py
Created July 19, 2026 10:04
Python `requests` TLS Fingerprint
import requests
# Querying a live endpoint that echoes your JA3 and JA4 signatures
url = "https://tls.peet.ws/api/all"
response = requests.get(url).json()
print(response)
@ps173
ps173 / converter.py
Last active May 4, 2021 16:19
A converter for webm format (requires ffmpeg)
#-*- coding:utf-8 -*-
# Webm converter for audio streams and video streams (can only convert audio to audio and video to video)
import subprocess
import sys
def convert_to_audio(filename):
command = ['ffmpeg', '-i', filename , 'out.mp3']
subprocess.run(command,stdout=subprocess.PIPE,stdin=subprocess.PIPE)