CPU Intel(R) Xeon(R) CPU E31220 @ 3.10GHz (共享cpu,4个逻辑核心)
内存 专用128M/突发256M
硬盘 RAID10 10G
网络 1000mbps 共享
OS Ubuntu Server 10.04 LTS
python版本 2.6.5
nginx版本 1.0.15
ApacheBench版本 2.3
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
def ip2int(ip): | |
return sum( | |
int(i)*(256**pos) | |
for pos, i in enumerate(reversed( ip.split('.'))) | |
) | |
def int2ip(num): |
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
server=/jnu.edu.cn/202.116.0.1 | |
server=/07073.com/114.114.114.114 | |
server=/10010.com/114.114.114.114 | |
server=/100ye.com/114.114.114.114 | |
server=/114la.com/114.114.114.114 | |
server=/115.com/114.114.114.114 | |
server=/120ask.com/114.114.114.114 | |
server=/126.com/114.114.114.114 | |
server=/126.net/114.114.114.114 | |
server=/1616.net/114.114.114.114 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
ascii_num = [214, 247, 212, 170, 180, 205, 202, 188, 207, 235, 202, \ | |
212, 202, 212, 184, 248, 212, 219, 195, 199, 188, 196, \ | |
208, 187, 202, 177, 181, 216, 214, 183, 181, 201, 250, \ | |
212, 208, 180, 181, 195, 182, 224, 188, 242, 184, 212, \ | |
161, 173, 167, 173] | |
t = iter(ascii_num) |
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/sh | |
# file: /root/check_3g_network.sh | |
LOGGER_TAG="3g_network_check" | |
ping -c 5 www.baidu.com > /dev/null | |
if [ $? -eq 0 ]; then | |
logger -t LOGGER_TAG "3g network is connection." |
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 | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 8.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :20140601 | |
#usage :/bin/bash wildfly-install.sh | |
WILDFLY_VERSION=8.1.0.Final | |
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION |
- Replace the
user-data
file on your coreos-vagrant directory. - Run command:
vagrant provision
- Run command:
vagrant reload
- Open the docker-web site, have fun :)
OlderNewer