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 nativefier -g | |
curl -sL https://github.com/c9/core/raw/master/build/osx/c9.icns > c9.icns | |
nativefier --app-name "Cloud9 IDE" --icon c9.icns --conceal --overwrite https://ide.c9.io/[user-name]/[workspace-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
# 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
#!/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 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 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 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 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
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
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
json.forEach(function(val){ | |
var keys = Object.keys(val); | |
console.log(keys) | |
html += "<div class='cat'>" | |
keys.forEach(function(key) { | |
html += "<strong>" + key + "</strong>: " +val[key]+ "<br>"; | |
}); | |
html += "</div><br>" | |
}) |
NewerOlder