docker-compose rm -v
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
| /usr/local/mysql/bin/mysqldump --host=${hostname} --port=${port} --user=${dbuser} --password=${dbpass} --lock-tables=false --no-data --routines=true --verbose --set-gtid-purged=OFF --skip-tz-utc ${dbname} > ../dumps/AWS_${dbname}_${dt}.dump |
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/bash | |
| # generate private key to create certificate signing request | |
| # privatekey.pem | |
| openssl genrsa 2048 >private.pem | |
| # create a certificate signing request (CSR) | |
| # csr.pem | |
| openssl req -new -key private.pem -out csr.pem |
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
| { | |
| "events": { | |
| "start": "cls || clear" | |
| } | |
| } |
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
| openssl genrsa -out private.pem 2048 | |
| openssl rsa -in private.pem -outform PEM -pubout -out public.pem |
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
| FROM ubuntu:18.04 | |
| CMD [ "sh", "-c", "tail -f /dev/null" ] |
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
| ssh -i "key.pem" -D 8123 HOST |
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
| snagged from: https://gist.github.com/1901/53a57217b213aab22cfd60152a7f954b | |
| # install socat on CentOS 6.x | |
| rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el6.rpm | |
| yum install socat | |
| # tcp | |
| nohup socat TCP4-LISTEN:3306,reuseaddr,fork TCP4:192.168.1.2:3306 >> socat.log 2>&1 &! | |
| # udp |
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
| aws s3 ls --summarize --human-readable --recursive s3://bucket-name/ |
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
| npm install -g @cacherapp/cli |
NewerOlder