Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| """ | |
| MIT License | |
| Copyright (c) 2023 David Buchanan | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE language SYSTEM "language.dtd"> | |
| <!--Based on the language defintion shared on: | |
| https://wiki.gnome.org/Projects/GtkSourceView/LanguageDefinitions?action=AttachFile&do=view&target=asm-intel.lang | |
| --> | |
| <language id="assembler" name="Assembler (Intel)" version="2.0" section="Sources"> | |
| <metadata> | |
| <property name="mimetypes">text/x-asm;text/x-assembler</property> | |
| <property name="globs">*.asm</property> | |
| </metadata> |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script type="module"> | |
| // WICG Shape Detection API | |
| // - https://wicg.github.io/shape-detection-api/ | |
| try { | |
| const start = document.getElementById("start"); | |
| const video = document.getElementById("video"); | |
| const result = document.getElementById("result"); |
The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine binary, saving it in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.
To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:
sudo tar Cfx / widevine-flash-20200124_armhf.tgz
(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)
Instead of waiting for long commands to finish one can easily get notifications when they are complete. The following procdure shows how to set his in fish shell.
Requirements: fish shell, notify-send, xdotool
vi ~/.config/fish/functions/noti.fish with the content below:function fish_right_prompt
if test $CMD_DURATION
# Check if terminal window is hidden
| class MyCellRenderer : Gtk.CellRenderer { | |
| // icon property set by the tree column | |
| public Gdk.Pixbuf icon { get; set; } | |
| public string text { get; set; } | |
| public int progress { get; set; } | |
| public int Padding; | |
| private Gtk.CellRendererPixbuf icon_renderer; | |
| private Gtk.CellRendererText text_renderer; |
| docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
| #!/usr/bin/env zsh | |
| # This script prints a bell character when a command finishes | |
| # if it has been running for longer than $zbell_duration seconds. | |
| # If there are programs that you know run long that you don't | |
| # want to bell after, then add them to $zbell_ignore. | |
| # | |
| # This script uses only zsh builtins so its fast, there's no needless | |
| # forking, and its only dependency is zsh and its standard modules | |
| # |
| #!/usr/bin/env lua | |
| -- works like PHP's print_r(), returning the output instead of printing it to STDOUT | |
| function prettyprint(data) | |
| -- cache of tables already printed, to avoid infinite recursive loops | |
| local tablecache = {} | |
| local buffer = "" | |
| local padder = " " | |
| local inited = 0 |