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:
curl -v -u $USER:$(cat ~/.config/asciinema/install-id) https://asciinema.org/api/asciicasts -F asciicast=@/path/to/demo.cast |
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
#!/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...] |
# 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 |
Rails.configuration.middleware.use Rack::OpenID | |
Rails.configuration.middleware.use RailsWarden::Manager do |manager| | |
manager.default_strategies :remember_me_token, :password_form, :api_token, :openid | |
manager.failure_app = ExceptionsController | |
end | |
# Setup Session Serialization | |
class Warden::SessionSerializer | |
def serialize(record) |
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.)
# Example 1 | |
# Lets assume following line is longer than 80 cols and I want it to break it | |
Foobar.some_method.another_on(:with_some => :arg, :and_another => "one") | |
# Variant 1 | |
Foobar.some_method.another_on( | |
:with_some => :arg, :and_another => "one" | |
) |