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 | |
#Program: | |
# This script is used for setting up centos6.5 | |
# install Python 2.7.6,pip,virtualenv,django 1.6.9, | |
# MySQL client plus mezzanine framework | |
#History: | |
#2014/1/23 first edition. Cauu Martin First release | |
echo 'Installing Development tools...' |
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/expect | |
#Program: | |
# This program will connect your centos cloud server | |
#History: | |
#2014/11/25 Cauu Martin First release | |
set timeout 30 | |
spawn ssh usrname@your server address | |
expect "usrname@your server address's password:" | |
send "your password\r" | |
interact |
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
> rPrint({first={true,1.3,"abc",{1,2,5}},22,33,last={nil,5},2},nil,"Junk") | |
Junk table | |
Junk [1] number 22 | |
Junk [2] number 33 | |
Junk [3] number 2 | |
Junk [last] table | |
Junk [last] [2] number 5 | |
Junk [first] table | |
Junk [first] [1] boolean true | |
Junk [first] [2] number 1.3 |
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/zsh | |
#Problems: | |
#1. `` and "" trigger: parse error near `&' | |
#2. wget -O "filename" "url": dont copy/past in command, do it in script; double quote url; | |
latest_ae=https://github.com/aeternity/epoch/releases/latest | |
echo "正在获取ae最新的下载链接..." | |
ae_url=`curl --silent $latest_ae | grep -n 'href=\".*\"' | cut -d '"' -f 2` |
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 bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS/Debian/Ubuntu | |
# Description: Libsodium Install | |
# Version: 1.0.0 | |
# Author: Toyo | |
# Blog: https://doub.io/shell-jc6/ |
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 bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS/Debian/Ubuntu | |
# Description: Libsodium Install | |
# Version: 1.0.0 | |
# Author: Toyo | |
# Blog: https://doub.io/shell-jc6/ |
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 bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS/Debian/Ubuntu | |
# Description: Libsodium Install | |
# Version: 1.0.0 | |
# Author: Toyo | |
# Blog: https://doub.io/shell-jc6/ |