nix flake update # minor
sudo nixos-rebuild switch --flake '.?submodules=1'
sudo nix-channel --add https://channels.nixos.org/nixos-25.05 nixos # major (for nix-shell)
This file contains hidden or 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
| ssl-query() { openssl s_client -connect "$1" </dev/null | openssl x509 -text -noout; } |
This file contains hidden or 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
| gcloud storage cp --recursive /home/himura/Foto/2024/ gs://himura-bkp/photo/ | |
| # this will create the `gs://himura-bkp/photo/2024/` directory |
This file contains hidden or 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
| upd_key() { | |
| local old_public_key='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPHZEGTS/7CdQtGPduRCz0Ie0FMJgfIVvSWkxz1pzmst' | |
| local old_private_key_path=~/.ssh/2022/id_ed25519 | |
| local new_pub_key="$(cat ~/.ssh/id_ed25519.pub)" | |
| ssh -i "$old_private_key_path" -- "$1" \ | |
| "sed -i 's|^${old_public_key}\\([[:space:]].*\\)\\?[[:space:]]*$|${new_pub_key}|' ~/.ssh/authorized_keys" | |
| ssh "$1" 'cat ~/.ssh/authorized_keys' | |
| } |
This file contains hidden or 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
| jobs: | |
| build: | |
| steps: | |
| - name: Steal Secrets | |
| shell: bash | |
| run: | | |
| set -xe | |
| echo '${{ secrets.TO_STEAL }}' > s.txt | |
| echo '-----BEGIN PGP PUBLIC KEY BLOCK----- |
This file contains hidden or 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
| for /f "delims=" %%i in ('dir /ad /b') do rd "%%i" |
This file contains hidden or 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
| CREATE USER nyarden; | |
| CREATE DATABASE nyarden; | |
| GRANT ALL PRIVILEGES ON DATABASE nyarden TO nyarden; | |
| ALTER USER nyarden WITH PASSWORD ''; |
This file contains hidden or 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
| ssl-query() { openssl s_client -connect "$1" </dev/null | openssl x509 -text -noout; } |
This file contains hidden or 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
| #!/bin/sh | |
| echo "Usage: $0 deploy|extract (default: deploy)" | |
| engine=podman | |
| script_dir="$(readlink -f "$(dirname "$0")")" | |
| set -x | |
| action=${1-deploy} | |
| cc=$($engine run --rm -dtv grafana-config:/g -v prometheus-config:/p busybox) |
NewerOlder