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 | |
set -e | |
# REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
# BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
# Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
# Add something likethese to your ~/.bashrc - /etc/profile | |
#export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
#export BACKUP_HOST_PREFIX="ftpback-bhs1-x" |
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 | |
# TODO: Add cmd to add to cron schedule (every 5 min? 15? 60? or 1?) | |
# TODO: Add a netcat cmd to push the results into a syslog or other compatible endpoint | |
# TODO: Fields with a " / " need additional parsing and normalization (MB vs. kB) | |
docker stats --no-stream --format 'Name="{{.Name}}"\tCPUPerc="{{.CPUPerc}}"\tMemPerc="{{.MemPerc}}"\tMemUsage="{{.MemUsage}}"\tBlockIO="{{.BlockIO}}"\tNetIO="{{.NetIO}}"' | |
exit |
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
The locale -a output suggests that you have no enabled utf-8 locales. Try running: | |
sudo locale-gen en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
Looking more closely C.UTF-8 is available, you can try only switching to that: | |
export LANG=C.UTF-8 |
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 http://ko.sdndev.net/2 | |
---------------------------- | |
ip netns add netns1 | |
ip netns exec netns1 ip link list | |
ip netns exec netns1 ping 127.0.0.1 | |
ip netns exec netns1 ip link set dev lo up | |
ip link add veth0 type veth peer name veth1 |
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
[watch] | |
watch -n 1 docker ps | |
[script] | |
-d 파일이 디렉토리인지 체크 | |
-e 파일이 존재하는지 체크 | |
-f 파일이 일반적인 파일인지 체크 | |
-g 파일이 SGID 퍼미션을 가졌는지 체크 | |
-r 파일이 읽기 가능인지 체크 | |
-s 파일의 크기가 0이 아닌지 체크 |
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
# tmp mysql | |
sudo docker run --name play_mysql -p 3310:3306 -v /home/ubuntu/mysql_data/play:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7.17 | |
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
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -t nat -F | |
iptables -t mangle -F | |
iptables -F | |
iptables -X |
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
tr -dc A-Za-z0-9_ < /dev/urandom | head -c12 | xargs |
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-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+Vx2K7dgihxGPKkYhV87u+1M9tS/qNUJe4vz6MdEeaTuwN6TzFHJ1odjMODn3M9jblCPXOpduIrOwg4MyEYlGUENWx05rAksGj2czaCkMjuZwc+nTq5cQceICOWfWAKQEN+84xwW7xspN1CM+A9AUcZHvDgZarmKL7/Zm6VsBfk1gKnSERjD384zIk5JtzbvzgmzbtFrq8U888Ndl1+Fzf0es6r3WYpMVAcvZfdHOJAvnRakin9J8kQTjJMp9dCkViU4qOV09OLhbUmP4RpMvwGpc0h9fYAu4QtO2QAW01LzhAFHcPikvm1vzAhrKvhBZaR09M2U1A3b2Lb9YGi2/ [email protected] |
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
1 mbabineau/cfn-bootstrap 1 10M+ https://hub.docker.com/r/mbabineau/cfn-bootstrap/ | |
2 google/cadvisor 144 10M+ https://hub.docker.com/r/google/cadvisor/ | |
3 nginx 2.6K 10M+ https://hub.docker.com/_/nginx/ | |
4 busybox 623 10M+ https://hub.docker.com/_/busybox/ | |
5 openshift/hello-openshift 9 10M+ https://hub.docker.com/r/openshift/hello-openshift/ | |
6 newrelic/nrsysmond 17 10M+ https://hub.docker.com/r/newrelic/nrsysmond/ | |
7 ubuntu 3.7K 10M+ https://hub.docker.com/_/ubuntu/ | |
8 gliderlabs/registrator |