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
// 从容器中拷贝数据到主机 | |
docker ps -a | |
docker cp 30c56dc8ca27:/home/test.cpp ./ | |
// 从主机拷贝数据到容器 | |
docker cp test.cpp 30c56dc8ca27:/test.cpp | |
// 然后启动该容器 | |
docker start -a -i 30c56dc8ca27 | |
// 删除指定的容器 |
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
# -*- coding: UTF-8 -*- | |
# 命名尽量采用LaTex的写法 | |
# M作为分隔符,起到空格的作用 | |
# _作为下标,__作为上标 | |
import numpy as np | |
# 读取测试数据 | |
test_data = np.genfromtxt('test_data.csv', delimiter=',', dtype=np.double) |
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
FROM maven:latest | |
MAINTAINER demons 837940593@qq.com | |
ADD settings.xml /usr/share/maven/conf/settings.xml | |
ADD sources.list /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y git |
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
<leader>nn | |
打开和关闭NERD tree | |
<leader>z | |
聚焦关注点 | |
gf | |
打开对应的文件 | |
<leader>f |
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
FROM python:3.6.1 | |
ADD sources.list /etc/apt/sources.list | |
RUN apt-get update && apt-get install -y \ | |
python-dev \ | |
python-pip \ | |
flex bison gcc make valgrind | |
RUN pip install 'buildbot[bundle]' -i https://pypi.tuna.tsinghua.edu.cn/simple | |
RUN pip install buildbot-worker -i https://pypi.tuna.tsinghua.edu.cn/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
#/bin/bash | |
if [ ! -d "Repository/Compiler_Lab" ]; then | |
cd Repository && git clone https://github.com/Clcanny/Compiler_Lab.git | |
fi | |
cd Repository/Compiler_Lab && git pull |
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
FROM debian:latest | |
ADD sources.list /etc/apt/sources.list | |
ADD aptgetforceyes /etc/apt/apt.conf.d/aptgetforceyes | |
RUN apt-get update | |
RUN apt-get install git | |
ADD gitconfig ~/.gitconfig | |
RUN apt-get install zsh curl |
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
FROM cppvimgtest:latest | |
ADD sources.list /etc/apt/sources.list | |
RUN gpg --keyserver pgpkeys.mit.edu --recv-key 15CF4D18AF4F7421 | |
RUN gpg -a --export 15CF4D18AF4F7421 | apt-key add - | |
RUN apt-get update | |
RUN apt-get install -y llvm |
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
FROM python:latest | |
ADD shadowsocks.json /home/shadowsocks.json | |
RUN pip install shadowsocks | |
CMD cd /home && ssserver -c shadowsocks.json |
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 | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config |
OlderNewer