- 21일 이후 삭제
- 사용 중 인스턴스 체크후(running, pending) skip
remove lc, asg, ami, snapshot
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 | |
./node_exporter --web.disable-exporter-metrics --collector.textfile.directory "/home/9to6/tmp" \ | |
--no-collector.arp \ | |
--no-collector.bcache \ | |
--no-collector.bonding \ | |
--no-collector.buddyinfo \ | |
--no-collector.cpu \ | |
--no-collector.cpufreq \ | |
--no-collector.cpu.info \ | |
--no-collector.conntrack \ |
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 --profile 9to6 s3api list-objects --bucket bucket_name |while read line | |
do | |
echo $line | |
command=$(echo "aws --profile 9to6 s3api put-object-acl --acl public-read --bucket bucket_name --key $line") | |
echo "$command" | |
bash -c "$command" | |
done |
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
ls -ld */ | grep "$DIRECTORY_NAME" |head -n -2 | awk '{print $9}' |xargs rm -rf |
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 | |
JENKINS_URL=$1 | |
PWD=$(pwd) | |
ls ./jobs/ | | |
while read line | |
do | |
filepath="'$PWD/jobs/$line'" | |
filename="${line%%.*}" |
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 | |
JENKINS_URL=$1 | |
VIEW=$2 | |
if [ -z "$1" ] | |
then | |
echo "Need to JENKINS URL for first argument" | |
exit 1 | |
fi |
iptables-save > /etc/iptables/rules.v4
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
cinema.uniqbuild.tk uniqbuild.tk { | |
proxy / localhost:3000 { | |
} | |
header / { | |
#Include any headers for your site here | |
} | |
gzip |
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 | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 |
NewerOlder