Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| #!/bin/bash | |
| # NOTE: Brackets are not supported and '$' in values will break the script. | |
| mkdir /etc/nginx/sites-enabled 2> /dev/null | |
| for file in /etc/nginx/sites-available/*.conf | |
| do | |
| TPL=$(cat $file) | |
| for row in $(env) | |
| do |
| # mh theme | |
| # Modified by Joseph Post | |
| # features: | |
| # path is autoshortened to ~25 characters | |
| # displays git status, short SHA, and clean/dirty | |
| # displays node/npm versions | |
| # displays docker machine name if active. | |
| # prompt |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\ | |
| Convert image to jpeg2000 | |
| ffmpeg -i in.png -c:v libopenjpeg out.jp2 | |
| Hex Edit out.jp2 | |
| ffmpeg -i in.jp2 -c:v png out.png | |
| General Edit | |
| ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi | |
| *edit in avidemux/whatever* |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.