Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| """ | |
| Convert YouTube subtitles(vtt) to human readable text. | |
| Download only subtitles from YouTube with youtube-dl: | |
| youtube-dl --skip-download --convert-subs vtt <video_url> | |
| Note that default subtitle format provided by YouTube is ass, which is hard | |
| to process with simple regex. Luckily youtube-dl can convert ass to vtt, which | |
| is easier to process. |
| # To use: change gmail's settings to: | |
| # enable imap: | |
| # Gmail Settings | |
| # Forwarding and POP/IMAP | |
| # create an app password | |
| # App passwords | |
| # https://myaccount.google.com/security | |
| set imap_login = "" | |
| set imap_pass = "XXXXXXXXXXXXXXXX" |
| # POST a JSON file and redirect output to stdout | |
| wget -q -O - --header="Content-Type:application/json" --post-file=foo.json http://127.0.0.1 | |
| # Download a complete website | |
| wget -m -r -linf -k -p -q -E -e robots=off http://127.0.0.1 | |
| # But it may be sufficient | |
| wget -mpk http://127.0.0.1 | |
| # Download all images of a website |
| #!/usr/bin/env bash | |
| # | |
| # Neofetch config file | |
| # https://github.com/dylanaraps/neofetch | |
| # Speed up script by not using unicode | |
| export LC_ALL=C | |
| export LANG=C | |
| # See this wiki page for more info: |
| # Neofetch config file | |
| # https://github.com/dylanaraps/neofetch | |
| # Speed up script by not using unicode | |
| export LC_ALL=C | |
| export LANG=C | |
| myprin() { | |
| if [ "$2" ]; then | |
| get_$2 &>/dev/null |
| /********************************************************** | |
| ADOBE SYSTEMS INCORPORATED | |
| Copyright 2005-2010 Adobe Systems Incorporated | |
| All Rights Reserved | |
| NOTICE: Adobe permits you to use, modify, and | |
| distribute this file in accordance with the terms | |
| of the Adobe license agreement accompanying it. | |
| If you have received this file from a source |