cat file.gpg | gpg --with-colons --import-options show-only --import
gpg --fingerprint
#!/bin/bash | |
# port forward port 5601 to localhost:5601 | |
ssh -i id_rsa -L 127.0.0.1:5601:localhost:5601 ec2-user@some_ip |
#!/bin/bash | |
curl -O https://s3.amazonaws.com/rds-downloads/rds-ca-2019-eu-central-1.pem | |
mysql -h DB_HOST -u USER_NAME -p --ssl-ca=/rds-ca-2019-eu-central-1.pem |
#!/bin/bash | |
kubectl set env deploy DEPLOYMENT_NAME ENV_KEY=ENV_VALUE | |
#!/bin/bash | |
# ping from unix socket | |
curl --unix-socket /var/run/docker.sock http://localhost/_ping |
#!/bin/bash | |
# copy contents for dir recursively to s3 bucket specifying encryption key | |
aws s3 cp $PATH_TO_DIR s3://$BUCKET --recursive --profile $AWS_PROFILE --sse aws:kms |
#!/bin/bash | |
cat <<EOF >hello.txt | |
# input file content here | |
# stop input with EOF |
run the JAR with the option: -Djavax.net.debug=all to help debug SLL/network issues | |
see: https://stackoverflow.com/a/6353956/4841710 | |
and: https://stackoverflow.com/a/62244399/4841710 for possible remedy if ussing custom runtime |
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
) | |
func main() { | |
rollUp() |
#!/bin/bash | |
git push --delete origin tagname | |
git push origin :refs/tags/tagname | |
git tag --delete tagname |