This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| rm -f $2 # -f suppresses errors | |
| ln -s $1 $2 | |
| bench --site all clear-cache | |
| bench restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*- 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) |