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/sh | |
| input_id="13364:53311:Keychron_Keychron_M6" | |
| output_id="DP-1" | |
| if [ "$1" == "lock" ]; then | |
| swaymsg input "$input_id" map_to_output "$output_id" | |
| echo "Cursor locked to $output_id" | |
| elif [ "$1" == "unlock" ]; then | |
| swaymsg input "$input_id" map_to_output "*" | |
| echo "Cursor unlocked" |
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
| /*: | |
| * @plugindesc [v1.0] Regex Text Replacer | |
| * @author voc | |
| * | |
| * @help | |
| * Replace any regex with any other text | |
| */ | |
| (function() { | |
| const DICTIONARY = [ | |
| [/\bfoot\b/, 'paw'], |
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
| init -1 python: | |
| DICTIONARY = { | |
| r'\bfoot\b': 'paw', | |
| r'\bfeet\b': 'paws' | |
| } | |
| # Python 2.7 has unordered dictionaries, convert to list instead | |
| keys = list(DICTIONARY.keys()) | |
| import re |
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
| // ==UserScript== | |
| // @name Regex text replacer | |
| // @version 1.0.2 | |
| // @description Replace any regex with any other text | |
| // @match http://*/* | |
| // @match https://*/* | |
| // @match file://*/* | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @grant none |
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
| // ==UserScript== | |
| // @name Unexpire Github Artifacts | |
| // @version 1.0.3 | |
| // @description Download "expired" github artifacts less than 3 months old | |
| // @match https://github.com/* | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @downloadURL https://gist.github.com/Vocaned/7dacb8bc5bb822a65a76f1dfa8ced08c/raw/unexpire-github-artifacts.user.js | |
| // @grant none | |
| // @run-at document-end |
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
| // ==UserScript== | |
| // @name Reddit raw media | |
| // @version 1.0.1 | |
| // @description Replace reddit media embeds with the raw files | |
| // @match https://*.reddit.com/media | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @downloadURL https://gist.github.com/Vocaned/1eeeba249dcaf05f917d82d7f7fa9438/raw/reddit-raw-media.user.js | |
| // @grant none | |
| // @run-at document-start |
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
| // ==UserScript== | |
| // @name Youtube Experiment Overrides | |
| // @version 1.1.0 | |
| // @description Generic experiment override userscript, configurable via script storage. | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @match https://www.youtube.com/* | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // @grant unsafeWindow |
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
| // ==UserScript== | |
| // @name Twitter age bypass | |
| // @version 1.0.2 | |
| // @description A simple userscript for bypassing Twitter media age verification | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @downloadURL https://gist.github.com/Vocaned/6bb15f28530194f25dfff7ae8327846e/raw/twitter-age-bypass.user.js | |
| // @match https://x.com/* | |
| // @match https://twitter.com/* | |
| // @grant none |
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/env python3 | |
| # Lists each entry of a spotify list (playlist/album/artist), for yt-dlp, scrobbling etc. | |
| from bs4 import BeautifulSoup | |
| import re | |
| import requests | |
| import sys | |
| import json | |
| if len(sys.argv) < 2 or not sys.argv[1].startswith('https://open.spotify.com/'): | |
| print(f'{sys.argv[0]} [spotify url]') |
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/sh | |
| # crt.sh api is very unreliable, don't rely on this in any scripts | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <domain>" | |
| exit 1 | |
| fi | |
| data=$(curl -s "https://crt.sh/?q=$1&output=json" | jq -r ' | |
| .[] | |
NewerOlder