- 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 :)
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 | |
#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 |
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/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 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 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 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 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 -*- | |
s = "\u9f9a\u654f\u83f2\u540c\u90d1\u82b7\u851a\u6211\u5e94\u8be5\u4e2d\u610f\u8fb9\u4e2a\u554a\uff01\uff01\u597d\u70e6" | |
u = eval('u"' + s + '"') | |
print u |
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 | |
# [usage]: homework_statistics.sh /path/to/your/student/homework/directory | |
# | |
mkdir -p ~/.homework_statistics | |
touch ~/.homework_statistics/result_list_$(date +%y-%m-%d-%H) | |
tmp_file=~/.homework_statistics/student_num_list | |
result_file=~/.homework_statistics/result_list_$(date +%y-%m-%d-%H) | |
full_file_path=$(cd $1; pwd) |
NewerOlder