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
sudo apt-get install -y open-vm-tools | |
vmware-toolbox-cmd timesync enable |
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
sudo mkdir /etc/systemd/system/docker.service.d | |
sudo bash -c 'cat <<EOF > /etc/systemd/system/docker.service.d/overlay.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay | |
EOF' | |
sudo systemctl daemon-reload | |
sudo systemctl restart docker |
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
while read -u 3 outerdir | |
do | |
cd "${outerdir}" | |
ls -1 ../../wav/"${outerdir}" > list | |
while read -u 4 innerdir | |
do | |
ln -s ../../wav/"${outerdir}"/"${innerdir}" "${innerdir}" | |
done 4< list | |
done 3< test |
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
# Emerging Threats | |
# | |
# This distribution may contain rules under two different licenses. | |
# | |
# Rules with sids 1 through 3464, and 100000000 through 100000908 are under the GPLv2. | |
# A copy of that license is available at http://www.gnu.org/licenses/gpl-2.0.html | |
# | |
# Rules with sids 2000000 through 2799999 are from Emerging Threats and are covered under the BSD License | |
# as follows: | |
# |
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 | |
MAC="$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/)" | |
VPCCIDR="$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/"$MAC"/vpc-ipv4-cidr-block)" | |
VPCNET="${VPCCIDR%%/*}" | |
VPCBASE="$(echo "$VPCNET" | cut -d"." -f1-3)" | |
VPCDNS="$VPCBASE"'.2' | |
echo "$VPCDNS" |
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 | |
# Set credentials and address for VNS3 manager | |
VNS3_PW=pa55Word | |
VNS3_IP=10.11.22.33 | |
# Use IPsec connection 2 | |
VNS3_EP=2 | |
# Clear out any existing IPsec tunnels | |
while true; do | |
TUNNEL=$(curl -s -k -X GET -u api:"$VNS3_PW" \ | |
https://"$VNS3_IP":8000/api/ipsec | python -mjson.tool \ |
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 | |
datenow=$(date +%s) | |
sudo docker ps > /tmp/docker."$datenow" | |
sudo apt-get update && sudo apt-get install -y lxc-docker | |
sudo docker start $(tail -n +2 /tmp/docker."$datenow" | cut -c1-12) |
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
daemon off; | |
worker_processes 1; | |
events { worker_connections 1024; } | |
http{ | |
sendfile on; |
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 | |
VNS3_AMI=ami-ea084f82 | |
VNS3_TYPE=t2.small | |
VNS3_SUBNET=subnet-b123b456 | |
VNS3_GROUP=sg-ea123456 | |
VNS3_NAME=myVNS3 | |
VNS3_PW=pa55Word | |
VNS3_LIC=license.gpg | |
VNS3_TK=MyS3cret |
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
alias ds='sudo docker start' | |
alias dt='sudo docker stop' | |
alias dps='sudo docker ps' | |
alias da='sudo docker attach' | |
alias di='sudo docker inspect' |