There is a variable $RANDOM than you can read in bash or zsh to get a random number beteen 0 and 32767. Here in zsh on my (old) mac:
% echo $RANDOM
13757
% echo $RANDOM
16896$argon2id$v=19$m=64,t=512,p=2$G/DQSn2+4afFDXZRdR3Vlw$DBvv46nt3EEkY5ehfDVfQQ
I hereby claim:
To claim this, I am signing this object:
| name: "Auto-merge Dependabot Pull Request for Dockerfile updates" | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| on: | |
| pull_request_target: | |
| branches: | |
| - main |
| FROM registry.access.redhat.com/ubi8/python-39:latest AS builder | |
| ARG psycopg2_version=2.9.5 | |
| USER 0 | |
| RUN set -eux && \ | |
| mkdir -p /build && \ | |
| chown 1001 /build |
| package main | |
| import ( | |
| "fmt" | |
| "net/url" | |
| "strings" | |
| "unicode/utf8" | |
| ) | |
| func normalizePassword(input string, escape bool) (output string) { |
| $ cat test.jsonnet | |
| local validateIP(ip) = | |
| local aux(value) = | |
| local mask = std.parseHex("ffffffff"); | |
| local octets = std.prune([if x != "" then std.parseInt(x) else null for x in std.split(value, '.')]); | |
| if std.length(octets) != 4 then | |
| false | |
| else | |
| local masked = ((octets[0] << 24) | (octets[1] << 16) | (octets[2] << 8) | (octets[3] << 0) & mask); | |
| if masked < 0 then false else masked <= mask; |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "net" | |
| "os" | |
| "time" |
This is basically a rehash of an original post on CNXSoft - all credit (particularly for the Virtio device arguments used below) belongs to the author of that piece.
Download the latest uefi1.img image. E.g. ubuntu-16.04-server-cloudimg-arm64-uefi1.img from https://cloud-images.ubuntu.com/releases/16.04/release/
Download the UEFI firmware image QEMU_EFI.fd from https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/
Determine your current username and get your current ssh public key:
Here is the best setup (I think so :D) for Keychron + Linux
Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes.
By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.
In order to change this, you need to change the fnmode parameter for the hid_apple kernel module.
Here's some documentation on it, but a quick summary can be found below: