Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

インストール&開発 #22

Open
akihiro-coder opened this issue Feb 19, 2023 · 13 comments
Open

インストール&開発 #22

akihiro-coder opened this issue Feb 19, 2023 · 13 comments

Comments

@akihiro-coder
Copy link
Owner

akihiro-coder commented Feb 19, 2023

タブキーをCtrlキーに変更

  • vimrc -> et g:SuperTabDefaultCompletionType = "<c-n>"
@akihiro-coder
Copy link
Owner Author

akihiro-coder commented Feb 19, 2023

http-server

@akihiro-coder akihiro-coder changed the title インストール項目 インストール Feb 19, 2023
@akihiro-coder akihiro-coder changed the title インストール インストール関連 Feb 19, 2023
@akihiro-coder
Copy link
Owner Author

sshでパスワードなしでリモートサーバーに接続する方法

  • SSH公開鍵認証で接続するまで
  • クライアントPCで鍵を作る
    • 'ssh-keygen -t rsa -b 4096'
  • リモートへ公開鍵を転送する
    • 'ssh-copy-id -i ~/.ssh/id_rsa.pub [リモートユーザー]@[リモートサーバーのホスト名]'

@akihiro-coder
Copy link
Owner Author

最新のファイル名(文字列)を取得

  • .bashrc > alias latest="ls -lthr | tail -n 1 | cut -c 50-"
  • 使用方法 (例)shareフォルダにコピーするとき
    • cp $(latest) /home/shareなど

@akihiro-coder
Copy link
Owner Author

Perplexity

  • perpelxity
  • 参照リンクとともに質問に答えてくれるchatGPTのようなもの

@akihiro-coder akihiro-coder changed the title インストール関連 インストール&開発 Feb 23, 2023
@akihiro-coder
Copy link
Owner Author

gitlabでマージリクエストからイシューをリンクさせる方法

  • 【GitLab】issueとマージリクエストを関連付ける方法
  • マージリクエストの説明のところで「#{issueのid}」を記入することで、issueと関連付けることができます。

  • またマージリクエストがマージされた場合、自動的にissueをクローズするには「Closes #{issueのid}」と記入します。

@akihiro-coder
Copy link
Owner Author

snapパッケージ管理ツールについて

@akihiro-coder
Copy link
Owner Author

変換キー:日本語、無変換キー:英語 設定方法

  • 右上
  • ツール
  • プロパティ
  • 編集
  • 変換キー すべての項目をIME有効化
  • 無変換キー すべての項目をIME無効化

@akihiro-coder
Copy link
Owner Author

ディレクトリ移動が楽になるツールのインストール

  • Installing via Package Managers
  • sudo add-apt-repository ppa:aacebedo/fasd
  • sudo apt-get update
  • sudo apt-get install fasd
  • 次のコードを.bashrcに書き込む
    -eval "$(fasd --init auto)"

@akihiro-coder
Copy link
Owner Author

開発マシンへアクセスできなくなった場合の対処方

  • 家のネットワークに繋いでいる場合にアクセスできなくなった場合は、一度、スマホの通信回線(テザリング)に繋ぐ
  • テザリングでssh出来ることを確認して、テザリングを切断し、再度家のネットワークにつなげる
  • ssh接続でアクセスを再度試す

@akihiro-coder
Copy link
Owner Author

akihiro-coder commented Mar 23, 2023

  • vim上でgit操作する方法
  • terminal コマンド補完を機能させる方法
  • Vim snippets

@akihiro-coder
Copy link
Owner Author

akihiro-coder commented Apr 7, 2023

vim上でターミナル操作を楽にする

  • tnoremap < ESC > < C-w > N
  • tnoremap < S-w > < C-w >< C-w >

@akihiro-coder
Copy link
Owner Author

vimrcを初めてcloneしてファイルを使用する時の手順

  1. deinのインストール手順にしたがい、deinをインストール
  2. python -m pip install pynvim
  3. python -m pip install autopep8 → pathが通っていなかったら通す
  4. .vimrcを~/ にコピーする

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant