Skip to content

Instantly share code, notes, and snippets.

@textshell
textshell / 24bit-color-shape.md
Last active May 9, 2020 22:02
24 bit color sequence support in terminal implementations

Testcase:

echo -ne "\\e[38:2:0:255:0:0mitu\\033[m\n\\e[38:2:255:0:0mmod\\033[m\n\\e[38;2;255;0;0mbug\\033[m"

(yes = displays text in red; no = no color change; X = sequence partially parsed as text)

terminal itu mod bug
(sum) 8x yes, 3x X, 2x green 11x yes, 3x X, 1x black 19x yes
@textshell
textshell / deco-color.png
Last active May 25, 2020 19:50
Terminal capabilites whiteboard
deco-color.png
"""
{[0]} path/to/repo
Show object summary in a borg repository.
That is, amount of objects currently still without a delete,
amount of objects that are deleted and amount of delete markers
"""
import sys
from borg.repository import Repository, TAG_PUT, TAG_DELETE
# Content scrapers with replaceable urls
^http://supportcode.xyz/question/(\d+)/
^http://thehelpcentre.xyz/question/(\d+)/
^http://findsupport.xyz/question/(\d+)/
^http://righthelp.xyz/question/(\d+)/
!http://www.stackoverflow.com/questions/$1
.background-color: #e0ffe0
.padding: 5px
.border: solid 1px red