Categories: Revolutionize tech/Commercial success
对当前公有云方面知识查漏补缺,提高在公有云上的方案制定、问题解决能力,以应对未来项目需求。
| #!/bin/bash | |
| # This script will help you setup Docker for TLS authentication. | |
| # Run it passing in the arguement for the FQDN of your docker server | |
| # | |
| # For example: | |
| # ./create-docker-tls.sh myhost.docker.com | |
| # | |
| # The script will also create a profile.d (if it exists) entry | |
| # which configures your docker client to use TLS | |
| # |
| #!/bin/bash | |
| # script created by nsc | |
| # usage ./bw_watch bw_warning bw_critical pkt_warning pkt_critical | |
| # bw usage is in kbits/s | |
| if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] || [ -z $4 ] | |
| then | |
| echo "VARIABLES ARE NOT SET!!!" | |
| echo "usage $0 bw_warning bw_critical pkt_warning pkt_critical" | |
| echo "bw usage is in kbits/s" |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo | |
| echo usage: $0 network-interface | |
| echo | |
| echo e.g. $0 eth0 | |
| echo | |
| exit | |
| fi | |
| IF=$1 |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
| import urllib2 | |
| import threading | |
| from Queue import Queue | |
| import sys, os, re | |
| class ThreadedDownload(object): | |
| REGEX = { | |
| 'hostname_strip':re.compile('.*\..*?/', re.I) | |
| } |