Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| // Types for the result object with discriminated union | |
| type Success<T> = { | |
| data: T; | |
| error: null; | |
| }; | |
| type Failure<E> = { | |
| data: null; | |
| error: E; | |
| }; |
| #!/usr/bin/env bash | |
| # | |
| # https://gist.github.com/joehillen/30f08738c1c3c0ca3e4c754ad33ad2ff | |
| # | |
| # This script inlines 'source' files. | |
| # | |
| # For long scripts, it is nice to be able to break them into multiple files | |
| # to make them easier to work with but still release as a single script. | |
| # | |
| # Inspired by https://stackoverflow.com/a/37533160/334632 with the following enhancements: |
| // ==UserScript== | |
| // @name YouTube shorts in normal player | |
| // @version 1.0.2 | |
| // @description This script will redirect YouTube shorts URLs to a normal player | |
| // @author andr | |
| // @match https://www.youtube.com/shorts/* | |
| // @match https://youtube.com/shorts/* | |
| // @updateURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
| // @downloadURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
| // @grant none |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
| { | |
| "extensions": [ | |
| { | |
| "id": "10", | |
| "lang": "de", | |
| "source": "Wie Manga!" | |
| }, | |
| { | |
| "id": "100019686565354829", | |
| "lang": "de", |
A userscript for displaying the actual date & time (relative to local time) of when a Twitch clip (and video) was created.
FYI: It only works on URLs that start with https://clips.twitch.tv/.
This script does not work with URLs that are on the Twitch "channel pages" (https://www.twitch.tv/CHANNEL_NAME_HERE/clip/...).
This has been added as of v0.5.0.
"Under the hood" the script uses Date.toLocaleString() to format the date. The format of the date & time may differ from the screenshots below.
| { | |
| "key_events": { | |
| "key_unknown": "adb shell input keyevent 0", | |
| "key_soft_left": "adb shell input keyevent 1", | |
| "key_soft_right": "adb shell input keyevent 2", | |
| "key_home": "adb shell input keyevent 3", | |
| "key_back": "adb shell input keyevent 4", | |
| "key_call": "adb shell input keyevent 5", | |
| "key_endcall": "adb shell input keyevent 6", | |
| "key_0": "adb shell input keyevent 7", |