This file contains hidden or 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
| from Crypto.Cipher import ARC4 | |
| from hashlib import sha1, md5 | |
| from random import randint | |
| from ecutils.core import Point, EllipticCurve | |
| from sys import argv | |
| KCHARS = "BCDFGHJKMPQRTVWXY2346789" | |
| SPK_ECKEY = { | |
| "a": 1, |
This file contains hidden or 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
| git clone https://github.com/worksg/cephfs-hadoop.git | |
| cd cephfs-hadoop | |
| docker run --net=host --rm -it -v $(pwd):/workspace \ | |
| -e LOCAL_MAVEN_MIRROR=http://maven.aliyun.com/nexus/content/groups/public/ \ | |
| -w /workspace maven:3-jdk-8 /bin/bash | |
| echo "deb http://mirrors.aliyun.com/debian stretch-backports main" >> /etc/apt/sources.list \ | |
| && sed -i 's#security.debian.org#mirrors.aliyun.com#g' /etc/apt/sources.list \ |
This file contains hidden or 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
| yum install -y elfutils-libelf-devel libmnl-devel | |
| yum install -y kernel-headers | |
| # install GCC 4.4.7 | |
| yum install -y gcc gcc-c++ | |
| hash -r && gcc --version && g++ --version | |
| # WireGuard version between 20170613 and 20180202 | |
| wget https://git.zx2c4.com/WireGuard/snapshot/WireGuard-0.0.20180202.tar.xz | |
| xz -d WireGuard-0.0.20180202.tar.xz |