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:
#!/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 |
#SSL | |
openssl s_client -connect <MAIL_HOST>:465 -crlf -ign_eof | |
#StartTLS | |
openssl s_client -connect <MAIL_HOST>:25 -starttls smtp | |
#Without security | |
telnet <MAIL_HOST> 25 | |