I hereby claim:
- I am schwabix on github.
- I am schwabix (https://keybase.io/schwabix) on keybase.
- I have a public key whose fingerprint is 85F5 B0BB E34A AF68 C3A2 2B64 80DE 3E43 8A87 CBA8
To claim this, I am signing this object:
| ENDPOINT=example.com:443 | |
| # test all ciphers on all protocols | |
| for v in ssl2 ssl3 tls1 tls1_1 tls1_2 tls1_3; do | |
| for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do | |
| openssl s_client -connect "$ENDPOINT" \ | |
| -cipher $c -$v < /dev/null > /dev/null 2>&1 && | |
| echo -e "$v:\t$c" | |
| done | |
| done |
| # identify containername | |
| crictl -r unix:///run/containerd/containerd.sock ps | |
| # get full container id | |
| runc --root /run/containerd/runc/k8s.io/ list | grep xxxxxxx | |
| # enter container as root | |
| runc --root /run/containerd/runc/k8s.io/ exec -t -u 0 xxxxxxx sh |
| #!/bin/sh | |
| kubectl -n <NS> get secret -o custom-columns=:.metadata.name,:.metadata.namespace --no-headers | xargs -n 2 sh -c '(kubectl get secret -n $3 -o yaml $2) > $2.yaml' | |
| -- {} |
| # MD5 für Public Key | |
| openssl x509 -noout -modulus -in cert.pem | openssl md5 | |
| # MD5 für Private Key | |
| openssl rsa -noout -modulus -in key.pem | openssl md5 |
| #!/bin/env bash | |
| while read image; do | |
| original_image="old.repo.domain/${image}" | |
| target_image="new.repo.domain/${image}" | |
| # download all tags images | |
| docker pull $original_image --all-tags |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| git init --bare ~/.dotfiles | |
| alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' | |
| echo "alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc | |
| dotgit config status.showUntrackedFiles no |
| #!/bin/sh | |
| losetup -f | |
| # output eg. /dev/loop0 | |
| losetup /dev/loop0 my-image-file.img # link image file with loop drive | |
| kpartx -av /dev/loop0 # creates lvm drives for partitions | |
| mount /dev/mapper/loop0p1 /mnt/image # for first partition | |
| # unmount |
| mysqldump -u<USER> -h<HOST> -p --lock-tables=false <DB> -r dump.sql | |
| mysql -u<USER> -p --default-character-set=utf8 <DB> | |
| mysql> SET names 'utf8'; | |
| mysql> SOURCE dump.sql |
| # SERVER - BACKUP HOST | |
| socat -u TCP-LISTEN:9876,reuseaddr OPEN:<FILENAME>,creat,largefile | |
| # CLIENT | |
| tar cvzf - ./* | socat -u STDIN TCP:<BACKUP_HOST>:9876,sndbuf=67108864,dontroute |