- Install requirements
yum install -y yum-utils device-mapper-persistent-data lvm2
- Add repo
yum install -y yum-utils device-mapper-persistent-data lvm2
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
# 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 |
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" |
#!/bin/sh | |
# MyMonero | |
# >>>> 46j2TLADJQU4Ry4eRNP7iSiZchSj7qc5ZVYdasnhwwVmELrdrRQwVDP7zf25PdXoJfZgGH3eeWFyQaLbUhXMwS7T3ujaCiK | |
WALLET=46j2TLADJQU4Ry4eRNP7iSiZchSj7qc5ZVYdasnhwwVmELrdrRQwVDP7zf25PdXoJfZgGH3eeWFyQaLbUhXMwS7T3ujaCiK | |
if [ "_${RIG_NAME}" == "_" ]; then | |
RIG_NAME=_$(hostname) | |
fi |
#!/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" |
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 .. |
Windows 上 通过cygwin 拉取gitlab 私有仓库,因为npm调用git时cygwin目录和系统目录冲突需要修改npm的git.js 位置在全局的node_modules目录,我电脑上的位置是C:\Users\Seven\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\util\git.js
module.exports._exec = execGit
function execGit (gitArgs, gitOpts, opts) {
opts = optCheck(opts)
+ // hack by seven
+ if (gitArgs) {
+ gitArgs = gitArgs.map(gitArg => gitArg.indexOf('C:\\') === -1 ? gitArg : gitArg.replace(/\\/g, '/').replace(/C\:\//i, '/cygdrive/c/'));
FROM alpine:latest as builder | |
RUN adduser -S -D -H -h /xmrig miner | |
WORKDIR /xmrig | |
RUN apk --no-cache upgrade && \ | |
apk --no-cache add \ | |
curl \ | |
git \ |