I hereby claim:
- I am ku1ik on github.
- I am sickill (https://keybase.io/sickill) on keybase.
- I have a public key ASA6zv4rQRzFiEbKAPOiFfmc4rJOYHKCXOZ9V-3cfwFatgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| 0x00 - NUL - Null character, used as a string terminator in some programming languages | |
| 0x01 - SOH - Start of Header, indicates the start of a message in communication protocols | |
| 0x02 - STX - Start of Text, marks the end of the transmission header and the beginning of the message | |
| 0x03 - ETX - End of Text, signifies the end of a message | |
| 0x04 - EOT - End of Transmission, marks the end of a message or series of messages | |
| 0x05 - ENQ - Enquiry, requests an acknowledgement from the receiver in communication protocols | |
| 0x06 - ACK - Acknowledge, confirms receipt of a message in communication protocols | |
| 0x07 - BEL - Bell, triggers an audible bell or alert on a device | |
| 0x08 - BS - Backspace, moves the cursor back one space in text processing | |
| 0x09 - HT - Horizontal Tab, moves the cursor to the next tab stop in text processing |
Following will teach you how to play the "easter-egg" (which actually isn't, but many people describe this as an easter egg) of ASCII-Art Star Wars (or Star Wars in terminal/telnet, whatever), the one you normally starts like this:
$ telnet towel.blinkenlights.nl| # Check disk space before | |
| df -h | |
| # Delete local-lvm storage in gui | |
| lvremove /dev/pve/data | |
| lvresize -l +100%FREE /dev/pve/root | |
| resize2fs /dev/mapper/pve-root |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
I implemented simple (dumb) algorithm for finding the largest Collatz trajectory (see Collatz conjecture) for all numbers < 100,000,000 in Python, Rust and Elixir.
I benchmarked them with time command, assuming boot time is negligible (Python and Elixir need ~1 sec to boot before the calculation loop starts but their runtime is in hundreds of seconds anyway. Rust program boots in couple of milliseconds.)
| -- | |
| -- Read only | |
| -- | |
| -- Create a group | |
| CREATE ROLE ro_group; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO ro_group; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO ro_group; |
| import sys | |
| import asciinema.asciicast as asciicast | |
| import asciinema.asciicast.events as ev | |
| # predicates | |
| def _(actual): | |
| return True |
| import sys | |
| import os | |
| import json | |
| import asciinema.asciicast as asciicast | |
| import asciinema.asciicast.frames as frames | |
| # run me with: | |
| # python3 edit-asciicast.py original.cast edited.cast |
| curl -v -u $USER:$(cat ~/.config/asciinema/install-id) https://asciinema.org/api/asciicasts -F asciicast=@/path/to/demo.cast |