- Install Termux from Github: https://github.com/termux/termux-app/releases
- Download the apk and install it -> Note that installing termux from Play Store is highly discouraged.
pkg update
// ==UserScript== | |
// @name Github Gist - Hide CodeMirror for Firenvim | |
// @namespace Violentmonkey Scripts | |
// @match https://gist.github.com/* | |
// @run-at document-start | |
// @version 1.0 | |
// @author instance.id | |
// @description Hide CodeMirror for Firenvim | |
// ==/UserScript== |
pkg update
macOS 10.14.4 introduced a keyboard shortcut that conflicts with one of IntelliJ IDEA’s best shortcuts. cmd-shift-a
pops open a Terminal window running an apropos search on the text selection, rather than the command palette.
You can manually disable these keyboard shortcuts via System Preferences, but this script does this programmatically. I was unable to find any existing information about how to do this via the command line, so I rolled my own solution.
It took a long time to work out which defaults
domain to find the plist for this. I probably worked out the pbs
domain from this post.
A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
apt install git | |
git clone https://gitlab.com/st42/termux-sudo | |
cd termux-sudo | |
cat sudo > /data/data/com.termux/files/usr/bin/sudo | |
chmod 700 /data/data/com.termux/files/usr/bin/sudo |
""" | |
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. |
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
FlipFlopWheel
attributes set to 1
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
// CSS Color Names | |
// Compiled by @bobspace. | |
// | |
// A javascript object containing all of the color names listed in the CSS Spec. | |
// This used to be a big array, but the hex values are useful too, so now it's an object. | |
// If you need the names as an array use Object.keys, but you already knew that! | |
// | |
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
// Use it as you please, 'cuz you can't, like, own a color, man. |