Dockerコマンドいろいろ
イメージ確認
$ docker images
イメージ作成
$ docker commit -m "comment"
$ docker commit -m "comment"
イメージのコピー(タグ名変更
$ docker tag <対象イメージ名:タグ> <変更後イメージ名:タグ>
イメージの削除
$ docker rmi
コンテナ確認
$ docker ps -a
コンテナを作成
$ docker run -it
コンテナ起動
$ docker start
コンテナログイン
$ docker attach
コンテナ名変更
$ docker rename
Docker hub にアップ
$ docker login
$ docker push
gemアップデート
$ bundle update
gem 指定
$ bundle update --source therubyracer
ショートカットキー
視点系
1 → 正面図
2 → 視点をY軸に上へ回転
3 → 右側面
6 → 左回転
7 → 上面図
8 → 視点をY軸に下へ回転
control + 2 → 画面を上に移動
control + 4 → 画面を右に移動
control + 8 → 画面を下に移動
選択系
a → 全選択、全解除
b → 矩形選択
モード系
tab → オブジェクトモード、エディットモード切り替え
cntrol + r → 細分化モード
cntrol + m → 反転モード
s → 拡大縮小モード
e → 押し出し
r + x + 90 → x 方向に90度回転
g + y + 90 → y 方向に90移動
shit + e → 又状押し出し
shift + k → ナイフモード
実行系
shift + d enter → 複製
option + a → 動画再生
option + i → key frame 削除
control + t → 追跡関係
f → 選択中の頂点で囲まれた面を作成する
window系
t → tools
m → move to layer
i → insert keyframe menu
w → specials
shift + a → add
option + m → merge
control + p → set parent to
control + u → window レイアウトの保存
Rubocop
Gemfile
group :development do↲ gem 'rubocop', require: false↲ end
警告をTODOとしてYAMLファイルに出力する
$ bundle exec rubocop --auto-gen-config
.rubocop.yml
inherit_from: '.rubocop_todo.yml'
コード自動修正
$ bundle exec rubocop --auto-correct
特定スタイル指定
$ bundle exec rubocop --only=StringLiterals -a
ファイル指定
$ bundle exec rubocop file_path
除外
# rubocop:disable Metrics/MethodLength .... # rubocop:enable Metrics/MethodLength