sudo apt-get install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
filter_mode = "host" | |
filter_mode_shell_up_key_binding = "session" |
bindkey "^[[1;3C" forward-word | |
bindkey "^[[1;3D" backward-word | |
bindkey '^H' backward-kill-word |
cmake -GNinja -Bbuild \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
-DPython3_FIND_VIRTUALENV=ONLY \ | |
-DLLVM_ENABLE_PROJECTS=mlir \ | |
-DLLVM_EXTERNAL_PROJECTS="torch-mlir;torch-mlir-dialects" \ | |
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=`pwd` \ | |
-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=`pwd`/externals/llvm-external-projects/torch-mlir-dialects \ | |
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \ |
set laststatus=2 | |
set number | |
set hlsearch | |
set incsearch | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set softtabstop=4 |
set laststatus=2 | |
set number "设置行号 | |
set hlsearch "高亮搜索 | |
set incsearch "增量搜索,即每次输入新字符都会触发搜索 | |
set autoindent "自动缩进 | |
set smartindent "智能缩进,基于autoindent | |
set tabstop=4 "设置一个tab占4个空格 | |
set shiftwidth=4 "每层缩进4个空格 | |
set expandtab "扩展tab为空格 | |
set softtabstop=4 "使用退格键,每次将删除4个空格 |
# remap prefix key from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# increase history limit | |
set-option -g history-limit 30000 | |
# close auto rename | |
set -wg allow-rename off |
package main | |
import ( | |
"crypto/rsa" | |
"fmt" | |
"math/big" | |
) | |
var RSA_PublicKeyString string = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413" | |
var Public_RSA_Key = rsa.PublicKey{ | |
N: fromBase10(RSA_PublicKeyString), |
# 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
# 方法1: 很慢 | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
# 方法2: 较快 | |
# 与方法1无明显区别. 2048位也足够用, 4096更强 | |
openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
# docker build -t ubuntu1604py36 | |
FROM ubuntu:16.04 | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:jonathonf/python-3.6 | |
RUN apt-get update | |
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv | |
RUN apt-get install -y git |