Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
fish touching

青鸟 blue-bird1

🏠
fish touching
View GitHub Profile
@blue-bird1
blue-bird1 / readme.md
Last active Oct 9, 2018
docker file write #docker
View readme.md

FROM指令和MAINTAINER指令

脚本的第1行是FROM指令。通过FROM指令,docker编译程序能够知道在哪个基础镜像执行来进行编译。所有的Dockerfile都必须以FROM指令开始。第二条指令MAINTAINER,用来标明这个镜像的维护者信息。

RUN指令

@blue-bird1
blue-bird1 / install.sh
Last active Oct 9, 2018
vim 编译 #vim
View install.sh
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge --enable-python3interp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-rubyinterp --enable-luainterp --enable-perlinterp --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ --enable-multibyte --enable-cscope --prefix=/usr/local/vim/
make install
@blue-bird1
blue-bird1 / .vimrc
Last active Oct 9, 2018
install Vundle #vim
View .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@blue-bird1
blue-bird1 / golang.sh
Last active Oct 9, 2018 — forked from jacoelho/golang.sh
Install golang debian/ubuntu #debian
View golang.sh
#!/bin/bash
export GOLANG_VERSION=1.10.2
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
export GOLANG_DOWNLOAD_SHA256=4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff
apt-get update -qq
apt-get install -y --no-install-recommends \
g++ \
@blue-bird1
blue-bird1 / install.sh
Last active Oct 9, 2018
composer install #debian
View install.sh
sudo apt-get install curl php5-cli git
php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
@blue-bird1
blue-bird1 / install.sh
Last active Oct 9, 2018
debian docker install #debian #docker
View install.sh
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
lsb-release \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository \
@blue-bird1
blue-bird1 / vsftpd.sh
Last active Oct 9, 2018 — forked from yamishi13/vsftpd.sh
Vsftpd Installer #debian
View vsftpd.sh
#!/bin/bash
#actualiza repos e instala vsftpd
sudo apt-get update
sudo apt-get install vsftpd -y
#remplaza opcioes para activar/desactivar en el archivo de configuracion
sudo sed -i -e 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd.conf
sudo sed -i -e 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf
sudo sed -i -e 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf
@blue-bird1
blue-bird1 / install.sh
Last active Oct 9, 2018
YouCompleteMe install #vim
View install.sh
git clone https://github.com/Valloric/YouCompleteMe ~/.vim/bundle/YouCompleteMe
sudo apt install build-essential cmake python3-dev
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --clang-completer
# The following additional language support options are available:
# C# support: install Mono and add --cs-completer when calling install.py.
# Go support: install Go and add --go-completer when calling install.py.
# JavaScript and TypeScript support: install Node.js and npm then install the TypeScript SDK with npm install -g typescript.
# Rust support: install Rust and add --rust-completer when calling install.py.
# Java support: install JDK8 (version 8 required) and add --java-completer when calling install.py
@blue-bird1
blue-bird1 / install.sh
Last active Oct 9, 2018
debian node and yarn install #debian
View install.sh
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
@blue-bird1
blue-bird1 / install.sh
Created Oct 9, 2018
portainer install
View install.sh
docker volume create portainer_data
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer