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
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" > /etc/apt/sources.list | |
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list | |
echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic-p |
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
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories | |
apk update |
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
# Install Kerberos in Linux based Docker image | |
$ export DEBIAN_FRONTEND=noninteractive | |
$ apt-get install -y krb5-user libpam-krb5 | |
$ kinit <account>@<COMPANY>.ORG | |
$ klist | |
# Create keytab file | |
$ ktutil | |
$ addent -password -p <account>@<COMPANY>.ORG -k 1 -e arcfour-hmac | |
$ write_kt <account>.keytab |
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
# Connect to running container in interactive mode in a shell prompt | |
$ docker exec -it container_name sh | |
# Same as above with auto-remove and Docker network | |
$ docker run -it --rm --network network_name container_name sh | |
# Same as above with mounted volume (Windows Pro) | |
$ docker run -it --rm --network network_name -v "C:\host_path:/guest_path" container_name sh | |
# Same as above with mounted volume (Windows Home) |
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
# Found on https://mirrors.ustc.edu.cn/help/pypi.html | |
pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple pip -U | |
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple |
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
echo "deb http://ftp.cn.debian.org/debian/ stretch main" > /etc/apt/sources.list | |
echo "deb http://ftp.cn.debian.org/debian/ stretch-updates main" >> /etc/apt/sources.list | |
apt-get update |