I hereby claim:
- I am msva on github.
- I am mva (https://keybase.io/mva) on keybase.
- I have a public key whose fingerprint is 7093 6CED 4EF0 0B7D 999B 8455 2650 3D34 9B3B 334B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env luajit | |
local iconv=require"iconv"; | |
local w2u = iconv.new("utf-8","cp1251"); | |
local u2w = iconv.new("cp1251","utf-8"); | |
local cURL = require("cURL"); | |
local html=require"htmlparser" | |
math.randomseed(tonumber(math.randomseed(os.time()) or os.time())+os.time()); -- randomize |
# Configure RPi | |
sudo /sbin/iwconfig wlan0 power off | |
sudo sed -i 's/exit 0/\/sbin\/iwconfig wlan0 power off\n\nexit 0/g' /etc/rc.local | |
# Install Docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh ./get-docker.sh --dry-run | |
sudo usermod -aG docker $USER | |
newgrp docker |
-- Spawn a command in the background, optionally redirecting stderr and stdout | |
-- | |
-- requiring this file returns a function(cmd_line, stdout_redirect, stderr_redirect) | |
-- | |
-- `cmd_line` is the command with possible arguments | |
-- optional `stdout_redirect` is io.stdout, io.stderr, or a filename. default/nil is io.stdout | |
-- optional `stderr_redirect` is io.stdout, io.stderr, or a filename. default/nil is io.stderr | |
-- | |
-- Example: | |
-- luajit -e 'require("spawn")("cat /etc/network/interfaces", "foo1", io.stdout)' |
#!/usr/bin/env bash | |
# ref: https://git.521000.bestmunity/t/how-to-check-if-a-container-image-exists-on-ghcr/154836/3 | |
# public image's {USER}/{IMAGE} | |
USER_IMAGE=eggplants/asciiquarium-docker | |
# get token ('{"token":"***"}' -> '***') | |
TOKEN="$( | |
curl "https://ghcr.io/token?scope=repository:${USER_IMAGE}:pull" | | |
awk -F'"' '$0=$4' |
#!/usr/bin/env bash | |
# ref: https://git.521000.bestmunity/t/how-to-check-if-a-container-image-exists-on-ghcr/154836/3 | |
# public image's {USER}/{IMAGE} | |
USER_IMAGE=eggplants/asciiquarium-docker | |
# get token ('{"token":"***"}' -> '***') | |
TOKEN="$( | |
curl "https://ghcr.io/token?scope=repository:${USER_IMAGE}:pull" | | |
awk -F'"' '$0=$4' |