Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # Libraries and infrastructure | |
| sudo apt update -y | |
| sudo apt install -y \ | |
| docker.io docker-buildx \ | |
| build-essential pkg-config autoconf bison rustc cargo clang \ | |
| libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
| libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
| redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
| rbenv apache2-utils |
| blueprint: | |
| name: Wake-up light alarm with sunrise effect | |
| description: 'A wake-up light alarm with a brightness and color temperature sunrise | |
| effect. Note: Requires date_time_iso sensor in configuration, not manually executable!' | |
| domain: automation | |
| input: | |
| light_entity: | |
| name: Wake-up light entity | |
| description: The light to control. Turning it off during the sunrise will keep | |
| it off. Color temperature range is auto-detected. |
| # Luke's config for the Zoomer Shell | |
| # Enable colors and change prompt: | |
| autoload -U colors && colors | |
| PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
| # History in cache directory: | |
| HISTSIZE=10000 | |
| SAVEHIST=10000 | |
| HISTFILE=~/.cache/zsh/history |
A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!
If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button
. If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:
| Windows Edition Product Key | |
| Windows 7 Starter 7Q28W-FT9PC-CMMYT-WHMY2-89M6G | |
| Windows 7 Home Basic YGFVB-QTFXQ-3H233-PTWTJ-YRYRV | |
| Windows 7 Home Premium RHPQ2-RMFJH-74XYM-BH4JX-XM76F | |
| Windows 7 Professional HYF8J-CVRMY-CM74G-RPHKF-PW487 | |
| Windows 7 Ultimate D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV | |
| Windows 7 Enterprise H7X92-3VPBB-Q799D-Y6JJ3-86WC6 | |
| Windows 7 Starter N D4C3G-38HGY-HGQCV-QCWR8-97FFR | |
| Windows 7 Home Basic N MD83G-H98CG-DXPYQ-Q8GCR-HM8X2 |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
| package terra; | |
| import openfl.Lib; | |
| import openfl.utils.ByteArray; | |
| import openfl.utils.Endian; | |
| import Ext.cfor; | |
| using utils.ByteArrayTools; | |
| /** | |
| * ... |
| def degrees_to_cardinal(d): | |
| ''' | |
| note: this is highly approximate... | |
| ''' | |
| dirs = ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", | |
| "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"] | |
| ix = int((d + 11.25)/22.5) | |
| return dirs[ix % 16] |