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
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL http://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | apt-key add - | |
echo "deb http://mirrors.ustc.edu.cn/docker-ce/linux/debian stretch stable" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y docker-ce | |
docker run hello-world | |
systemctl enable docker |
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
sudo pacman -R fakeroot --noconfirm | |
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz | |
tar xvf fakeroot_1.23.orig.tar.xz | |
cd fakeroot-1.23 | |
wget https://aur.archlinux.org/cgit/aur.git/plain/silence-dlerror.patch?h=fakeroot-tcp -O silence-dlerror.patch | |
patch -p1 -i silence-dlerror.patch | |
./bootstrap | |
./configure --prefix=/usr \ | |
--libdir=/usr/lib/libfakeroot \ | |
--disable-static \ |
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
package main | |
import ( | |
"errors" | |
"net" | |
"strconv" | |
"syscall" | |
"unsafe" | |
"os" | |
) |
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 | |
bucket=??? | |
host=oss-cn-???.aliyuncs.com | |
Id=??? | |
Key=??? | |
host="${bucket}.${host}" | |
method=$(echo $1 | tr '[:lower:]' '[:upper:]') | |
src=$2 |