docker-compose rm -v
This file contains 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 await of | |
const fetch = require('node-fetch') | |
const urls = [ | |
'https://swapi.co/api/people/1', | |
'https://swapi.co/api/people/2', | |
'https://swapi.co/api/people/3', | |
'https://swapi.co/api/people/4', | |
] |
This file contains 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
# This config will serve up: http://<haproxy>/foo/index.html | |
# | |
# This post was indispensable | |
# https://stackoverflow.com/questions/39964607/haproxy-forward-request-to-s3-hosted-site | |
global | |
#debug # Uncomment this line to debug and then comment out daemon | |
daemon | |
maxconn 256 |
This file contains 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
lsof -t -i :PORT_NUMBER |
This file contains 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 |
This file contains 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 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 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 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 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 |