This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Copyright © 2019 mpan; <https://mpan.pl/>; CC0 1.0 (THIS FILE!) | |
declare -ri rows="$(tput lines)" | |
declare -ri columns="$(tput cols)" | |
declare -ra codes=( | |
"$(tput setab 0) " | |
"$(tput setab 1) " | |
"$(tput setab 2) " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Signing key: 7C848198AE93D3BB | |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA256 | |
*/ | |
// Copyright © 2018 mpan; <https://mpan.pl/>; CC0 1.0 (THIS FILE!) | |
// This code should be compatible with C11, except for comments which contain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
# Copyright © 2016 mpan; <https://mpan.pl/>; CC0 1.0 | |
remote=1 | |
if [[ -z "$SSH_CONNECTION" && -z "$SSH_TTY" ]]; then | |
remote=0 | |
fi | |
root=0 | |
if [[ -n "$EUID" ]]; then | |
if [[ "$EUID" == 0 ]]; then |