configs

阿里NTP

ntp.aliyun.com
ntp1.aliyun.com
ntp2.aliyun.com
ntp3.aliyun.com
ntp4.aliyun.com
ntp5.aliyun.com
ntp6.aliyun.com
ntp7.aliyun.com

阿里DNS

nameserver 223.5.5.5
nameserver 223.6.6.6

vimrc

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set fencs=utf8,gbk,gb2312,gb18030
set termencoding=utf-8
set encoding=utf-8
set enc=utf8

set autoindent     " 换行自动缩进
set shiftwidth=4   " 自动缩进时的宽度
set ts=4           " tabstop的宽度
set expandtab      " tab换成空格
set softtabstop=4  " 退格键
"set paste          " 粘贴时不自动换行

s3cmd config

生成配置

s3cmd --configure \
        --access_key=<access_key> \
        --secret_key=<secret_key> \
        --region=<region> \
        --host=<endpoint> \
        --host-bucket=<endpoint> \
        --no-ssl

最小配置

[default]
access_key = <access_key>
secret_key = <secret_key>
bucket_location = <region>
host_base = <endpoint>
host_bucket = <endpoint>
use_https = False

pip 安装

get-pip.py

curl http://qinius.echosoul.cn/get-pip.py | /usr/bin/python

pip 本地配置文件 ~/.pip/pip.conf

[global]
index-url=https://pypi.douban.com/simple/
extra-index-url=http://mirrors.aliyun.com/pypi/simple/
        https://pypi.tuna.tsinghua.edu.cn/simple/
        http://pypi.mirrors.ustc.edu.cn/simple/
timeout=20
[install]
trusted-host=pypi.douban.com
        mirrors.aliyun.com
        pypi.tuna.tsinghua.edu.cn
        pypi.mirrors.ustc.edu.cn
[freeze]
timeout = 10

docker 加速配置

{
    "registry-mirrors": [
        "https://9dqq20h8.mirror.aliyuncs.com",
        "https://docker.mirrors.ustc.edu.cn"
    ],
    "graph": "/mydata/lib/docker",
    "bip": "172.20.0.1/24"
}

repos

##################################################
# /etc/yum.repos.d/cn.repo

[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=0

[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=0

[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=0

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirrors.aliyun.com/epel/7/$basearch
gpgcheck=0
##################################################

##################################################
# add below to /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
deb http://openresty.org/package/ubuntu trusty main
##################################################

##################################################
# add below to /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main
deb http://openresty.org/package/ubuntu xenial main
##################################################

##################################################
# debian10
# add below to /etc/apt/sources.list

deb https://mirrors.aliyun.com/debian  stable main contrib non-free
deb https://mirrors.aliyun.com/debian  stable-updates main contrib non-free
##################################################