Skip to content

Instantly share code, notes, and snippets.

#!/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...'
#!/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
> 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
@cauu
cauu / ae-downloader.sh
Last active October 27, 2018 13:48
download aeternity newest package
#!/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`
@cauu
cauu / install-libsodium.sh
Created October 27, 2018 16:47
This is a copy from Toyo;
#!/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/
@cauu
cauu / install-libsodium.sh
Created October 27, 2018 16:48
This is a copy from Toyo;
#!/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/
@cauu
cauu / install-libsodium.sh
Last active October 27, 2018 16:48
This is a copy from Toyo;
#!/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/