Giter Site home page Giter Site logo

dotfiles's Introduction

dotfiles

デフォルトシェルをbashに変更する chsh -s /bin/bash

init_for_mac.sh を実行する

~/.gitconfig の末尾に email = でメールアドレスを設定する

plugin

fzf: https://github.com/junegunn/fzf#using-git

ripgrep: https://github.com/BurntSushi/ripgrep#installation

fish

下記のリンクにしたがってfish及びfishermanのプラグインを使う http://techblog.lclco.com/entry/2018/02/27/083000

vim

brew install vim ripgrep fzf tmux git

最初にvim-plugをインストールする https://github.com/junegunn/vim-plug

なお、colorscheme solarizedは端末の色もsolorizedにしないとおかしな色になるので、できない場合は、molokaiがlucarioにする。

whichpr

~/.vim/autoload/ に下記の.vimファイルを置く https://github.com/pocke/whichpr/blob/master/autoload/whichpr.vim

メモ集

フロント系

フロントエンド

インフラ系

  • No space left on device

    • df -h
      • ディスクの容量を確認
    • du -hs /var/log/* | sort -k1hr
      • どのディレクトリやファイルが重いか確認。色々とあたりをつけて検索する。
    • rm log/staging.log.*
      • 重いやつを削除
    • du -hs /var/www/moyashi/shared/log/* | awk '{print $2}' | grep -E ".log.2018[0,1][0,1,8,9]" | xargs rm
      • こういう感じでも消せる
  • Mackerelでアラートが出た時 サーバーに入る。 htopを使って、CPU使用率やメモリ使用率をみる。 load Averageがコア数以上になっているかを確認する。 load Averageは待っているタスクの数(タスクとは何かはわからない)

  • vmstat

    • IOを見るために使う。swapが発生している。
    • ioはディスクに対するアクセス
  • sudo strace -p プロセスID

    • プロセスの状況を見る
  • コンテナ内に入る方法

    • docker
      • docker container run -it コンテナ名 /bin/sh

dotfiles's People

Contributors

wakasa51 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.