Skip to content

Instantly share code, notes, and snippets.

@thomas-repo
thomas-repo / JDownloader2.sh
Created Apr 8, 2021 — forked from leosuncin/JDownloader2.sh
JDownloader 2 headless startup script
View JDownloader2.sh
#!/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/var/run/$NAME.pid
COMMAND="/usr/bin/java -- -Djava.awt.headless=true -jar /home/osmc/jDownloader2/JDownloader.jar"
RUN_AS=osmc
d_start() {
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND
@thomas-repo
thomas-repo / ANSI.md
Created Oct 17, 2020 — forked from fnky/ANSI.md
ANSI Escape Codes
View ANSI.md

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27