启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
apt-get update && apt-get install build-essential automake autoconf libtool git clang -y && export CC=clang | |
ver=2.6.0 | |
wget --no-check-certificate https://tls.mbed.org/download/mbedtls-$ver-gpl.tgz | |
tar zxf mbedtls-$ver-gpl.tgz | |
cd mbedtls-$ver | |
sed -i "s/DESTDIR=\/usr\/local/DESTDIR=\/projects\/dists\/mbedtls/g" Makefile | |
LDFLAGS=-static make install | |
cd .. |
#!/bin/sh | |
# cross & static compile shadowsocks-libev | |
PCRE_VER=8.41 | |
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz" | |
MBEDTLS_VER=2.6.0 | |
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz" |
#!/bin/sh | |
# MyMonero | |
# >>>> 46j2TLADJQU4Ry4eRNP7iSiZchSj7qc5ZVYdasnhwwVmELrdrRQwVDP7zf25PdXoJfZgGH3eeWFyQaLbUhXMwS7T3ujaCiK | |
WALLET=46j2TLADJQU4Ry4eRNP7iSiZchSj7qc5ZVYdasnhwwVmELrdrRQwVDP7zf25PdXoJfZgGH3eeWFyQaLbUhXMwS7T3ujaCiK | |
if [ "_${RIG_NAME}" == "_" ]; then | |
RIG_NAME=_$(hostname) | |
fi |
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path | |
# Example... | |
TOKEN="INSERTACCESSTOKENHERE" | |
OWNER="BBC-News" | |
REPO="responsive-news" |
# ansible-pull setup | |
# | |
# on remote hosts, set up ansible to run periodically using the latest code | |
# from a particular checkout, in pull based fashion, inverting Ansible's | |
# usual push-based operating mode. | |
# | |
# This particular pull based mode is ideal for: | |
# | |
# (A) massive scale out | |
# (B) continual system remediation |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
yum install -y yum-utils device-mapper-persistent-data lvm2
[program:smokeping] | |
command=/usr/sbin/smokeping --master-url=http://ping.yuanjin.io:8088/smokeping/smokeping.fcgi --shared-secret=/var/lib/smokeping/secret --cache-dir=/var/lib/smokeping --slave-name=sha0Seven --nodaemon | |
stdout_logfile=/var/log/supervisor/%(program_name)s.log | |
stderr_logfile=/var/log/supervisor/%(program_name)s.err | |
stopsignal=6 |