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 bash | |
| # Read JSON input from stdin | |
| input=$(cat) | |
| # Extract all data from JSON in a single jq call | |
| eval "$(echo "$input" | jq -r ' | |
| @sh "model=\(.model.display_name // "Unknown")", | |
| @sh "context_total=\(.context_window.context_window_size // 0)", | |
| @sh "context_percentage=\(.context_window.used_percentage // 0)", |
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 bash | |
| # Usage: | |
| # ./backup_script.sh encrypt <input_folder1> [input_folder2 ...] [output_file] | |
| # ./backup_script.sh decrypt <input_file> [output_dir] | |
| # | |
| # Examples: | |
| # ./backup_script.sh encrypt FINANCE/ RECOVERY/ 202512290317-BACKUP.tar.gz.gpg | |
| # ./backup_script.sh decrypt 202512290317-BACKUP.tar.gz.gpg | |
| # |
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
| #!/bin/bash | |
| # Function to display a spinner | |
| spinner() { | |
| local pid=$1 | |
| local delay=0.1 | |
| local spinstr='|/-\' | |
| while kill -0 $pid 2>/dev/null; do | |
| local temp=${spinstr#?} | |
| printf " [%c] " "$spinstr" |
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
| {"lastUpload":"2022-12-16T16:22:02.205Z","extensionVersion":"v3.4.3"} |
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
| Mac Launchpad Scripts |
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
| async function clearMessages(server, channel, author, offset=0) { | |
| const authToken = 'YOUR_DISCORD_TOKEN'; | |
| const headers = { 'Authorization': authToken, 'Content-Type': 'application/json' }; | |
| const baseURL = `https://discordapp.com/api/v6/channels`; | |
| let searchURL = `https://discordapp.com/api/v6/guilds/${server}/messages/search?channel_id=${channel}&offset=${offset}&include_nsfw=true`; | |
| let clock = 0; | |
| let interval = 2000; | |
| function delay(duration) { | |
| return new Promise((resolve, reject) => { |
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
| $("[class^=pictureInPicture]").remove() |
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
| !.gitignore | |
| !.htaccess | |
| !.htpasswd | |
| %20../ | |
| %2e%2e//google.com | |
| %3f/ | |
| %EXT% | |
| %ff/ | |
| ..;/ | |
| .7z |
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
| // Use CTRL + SHIFT + I to open Discord Developer Console | |
| let _$$ = $$ // Setup jQuery | |
| // Forever utilities | |
| let forevers = {} | |
| let startForever = async (id, f, t) => { | |
| f() | |
| forevers[id] = setTimeout(() => startForever(id, f, t), t) | |
| } |
NewerOlder