dein.vimを使ってみる
curl を使ってシェルをダウンロード
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh -o /tmp/installer.sh
シェルの実行
sh /tmp/installer.sh ~/.vim/dein
"dein Scripts----------------------------- if &compatible set nocompatible " Be iMproved endif " Required: set runtimepath+=/home/ubuntu/.vim/dein/repos/github.com/Shougo/dein.vim " Required: if dein#load_state('/home/ubuntu/.vim/dein') call dein#begin('/home/ubuntu/.vim/dein') " Let dein manage dein " Required: call dein#add('/home/ubuntu/.vim/dein/repos/github.com/Shougo/dein.vim') " Add or remove your plugins here: call dein#add('Shougo/neosnippet.vim') call dein#add('Shougo/neosnippet-snippets') " You can specify revision/branch/tag. call dein#add('Shougo/vimshell', { 'rev': '3787e5' }) " Required: call dein#end() call dein#save_state() endif " Required: filetype plugin indent on syntax enable " If you want to install not installed plugins onstartup. "if dein#check_install() " call dein#install() "endif "End dein Scripts-------------------------
コンソールに表示された↑を home直下の .vimrcに追記
pythonでYYYY-MM-DD形式で日付を扱う
import datetime
today = datetime.date.today()
today.isoformat()
pythonで取得したテキストの行数を取得する
num_lines = sum(1 for line in open(text))
Ubuntu 16.04 LTS にdockerをインストールする
sudo apt-get update
apt-get install -y software-properties-common
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
sudo apt-get update
sudo apt-get install docker-ce
docker --version