- setup/install_homebrew_packages.sh
- fisherをインストールする
- setup/install_fish_plugins.sh
- 実行はfishコマンドで行う
fish setup/install_fish_plugins.sh
- 実行はfishコマンドで行う
- setup/put_symbolic_links.sh
TODO: Brewfile https://qiita.com/d0ne1s/items/90974ad472c2d891e784
- キーボード
- キーのリピート:最も速い
- リピート入力認識までの時間:最も速い
- Touch Barに表示する項目:F1, F2などのキー
- Homebrewのインストール http://brew.sh/index_ja.html
- setup/install_homebrew_packages.sh を実行して各種ソフトウェアをインストールする
powerline-status(現在は入れなくても問題ない)pip install --user powerline-status
- powerline-fonts
- インストール
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
- iTerm2 -> Profiles -> Text -> "Font" を Source code pro for Powerline に変更する
- チュートリアル
- インストール
- setup/install_homebrew_packages.sh に含まれている
- shellsにfishを追記
sudo vi /etc/shells
- fishのパスを追記
which fish
- デフォルトシェルを変更
- chsh -s $(which fish)
- fishのプラグインマネージャ
- fisherのインストール
- プラグインのインストールスクリプト
- .tmux.conf
tmuxとOS Xのクリップボードの橋渡しをするツールを入れる(現在は入れなくても問題ない)- rothgar/awesome-tmux: A list of awesome resources for tmux
- dotfilesの設定ファイルを使う
cd ~ && mv .gitignore_global .gitignore_global.default && ln -s ~/src/github.com/ackintosh/dotfiles/.gitignore_global .gitignore_global
git config --global core.excludesfile ~/.gitignore_global
- gitignore に書くべきでないものは gitignore_global へ - Qiita
- git-secrets
- クラウド破産しないように git-secrets を使う - Qiita
- brew install git-secrets
- AWSのクレデンシャル情報をコミットしてしまうのを防ぐ
-
git secrets --register-aws --global
-
git secrets --install ~/.git-templates/git-secrets
-
git config --global init.templatedir '~/.git-templates/git-secrets'
-
- IntelliJでコミットしたときに
'secrets' is not a git command
というエラーが出てしまうのでgitのパスを指定する- IntelliJ Preference → Version Control → Git
which git
で出るパスを入れる(/usr/local/bin/
のはず)
# git コミットメッセージの文字化け防止
git config --global core.editor '/usr/local/bin/vim -c "set fenc=utf-8"'
# 個人の環境特有の除外設定
git config --global core.excludesfile ~/.gitignore_global
# キレイなdiff
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
# ghq
git config --global ghq.root ~/src
# 仕事用マシンでOSSにコミットするとき
# サブアカウントとしてgithub.comのアカウントを設定する
git config --local user.name "ackintosh"
git config --local user.email "sora.akatsuki@gmail.com"
# HTTPSでリポジトリアクセスする場合
# - リポジトリの操作時にuser/passwordを尋ねられる
# - 2FAを有効にしているので、passwordにはpersonal access tokenを入れなければならない
# - 毎回入力するのは手間なのでOSXキーチェーンを使う
# see https://help.github.com/articles/accessing-github-using-two-factor-authentication/#using-two-factor-authentication-with-the-command-line
# see https://help.github.com/articles/caching-your-github-password-in-git/
git config --local credential.helper osxkeychain
# その後、初回のpushなどでuser/password(personal access token)を求められる
# それ以降は入力不要になる
# gitのmerge --no-ff のススメ - Qiita https://qiita.com/nog/items/c79469afbf3e632f10a1
git config --global --add merge.ff false
# pullのときはfast forwardのみ受け入れる
git config --global --add pull.ff only
- xargs
- parallel
- コマンドを並列に実行するGNU parallelがとても便利 - りんごがでている
echo -e "alice\nbob" | parallel echo -e
- https://www.iterm2.com/
- 設定メモ
- command + w を押してもすぐに閉じないようにする
- Preference -> Profiles -> Session -> Closing
Always prompt before closing
を選択する
- 設定のエクスポート/インポート
- https://qiita.com/reoring/items/a0f3d6186efd11c87f1b
- このリポジトリの iterm2 ディレクトリを指定する
- https://ei-kana.appspot.com/
- コマンドキー単体で英数/かなを切り替える
https://www.alfredapp.com/アプリ起動: cmd + spaceクリップボード: shift + cmd + spaceスニペットを↓にエクスポートしている
- https://freemacsoft.net/appcleaner/
- Macのアプリをゴミを残さずにアンインストールする
- https://www.raycast.com/
- cmd + space で起動設定
- Spacesの無効化方法が設定ウィンドウに書いてあるので参照する
- Clipboard history拡張機能
- デフォルトで入っている
- cmd + shift + space で起動設定
- https://justgetflux.com/
- 画面のブルーライトをカットするアプリ
- 画面をキャプチャしてgifアニメーションを作る
- https://itunes.apple.com/jp/app/giphy-capture-the-gif-maker/id668208984?mt=12
- アプリケーションフォルダから削除しただけでは残ってしまうゴミを削除できる
- https://itunes.apple.com/jp/app/app-cleaner-uninstaller/id1013897218?mt=12
- ウィンドウの移動, リサイズ
- https://rectangleapp.com/
- 設定
- Fullscreen: Cmd + Ctrl + J
- Left Half: Cmd + Ctrl + H
- Right Half: Cmd + Ctrl + L
- 通信のモニタリング、シミュレーションなど
- https://www.charlesproxy.com/
- ローカルに起動したアプリケーションと外部サービスとの通信のデバッグなどに便利
- Redisクライアント
- https://github.com/RedisInsight/RedisInsight
- Redisクライアント
- https://github.com/luin/medis
- 現在は App Store でインストール可能
- https://github.com/rbenv/rbenv
brew install rbenv
brew install direnv
brew install tfenv
-
IDEのテーマ
-
エディタのカラースキーム
-
Java/Kotlin
-
設定
- http://kzdev.hatenablog.com/entry/2017/09/03/213423
- https://github.com/FoxxMD/intellij-jvm-options-explained
- Help -> Edit Custom VM Options...
-Xms2G
-Xmx4G
-XX:MaxInlineLevel=3
ref
-
Font
- Menlo
- Size: 11
- Line spacing: 1.2
-
Plugin
- IdeaVim : .ideavimrc
-
Keymap
- Run:
Cmd + Ctrl + 4
- Debug:
Cmd + Ctrl + 5
- Run:
-
エディタで開いているファイルを自動的にプロジェクトツリーでそのファイルを選択状態にする
https://x.com/kumagi/status/1761457618449760512
- ジェネレータ
mkdir blog && cd $_
git clone https://github.com/ackintosh/ackintosh.github.com-content.git content
mkdir themes
git clone https://github.com/ackintosh/ackintosh.github.com-theme themes/casper
ln -s themes/casper/config.toml config.toml
git clone https://github.com/ackintosh/ackintosh.github.com.git public
hugo server -w
hugo
- caps lock に control を割り当てる
- キーボード -> キーボード -> 修飾キー -> Caps Lock キー のプルダウンで Control を選択する
- スペルの自動変換を OFF
- キーボード -> ユーザー辞書 -> "英字入力中にスペルを自動変換" のチェックを外す
- スマート引用符を OFF
- キーボード -> ユーザー辞書 -> "スマート引用符とスマートダッシュを使用" のチェックを外す
- Gateron Red
- レイアウト(閲覧にはログインが必要)
- https://www.massdrop.com/configurator/ergodox?referer=QKNF2S&hash=f845a48d2539881741e562e719370157
- レイアウトの更新手順
- https://www.pjrc.com/teensy/loader_mac.html から Teensy Loader Disk Image (teensy.dmg) をダウンロードする
- massdropのサイトからレイアウトをダウンロードする(.HEX)
- teensy.dmgを起動する
- Ergodox右上の穴を押してプログラムモードにする
- File -> Open Hex File でダウンロードしたHEXファイルを読み込む
- Operation -> Program
- Operation -> Reboot
- 変更が反映されたことを確認する
- レイアウト定義ファイル: KeyboardioModel01-Firmware.ino
- wiki
- キーのリマップ
- https://www.edikun.co.jp/kinesis/
- progm + shift + Esc でパワーユーザーモードをOnにする (初回のみ必要)
- progm + F1 でvドライブをPCに認識させる
- SmartSet App for Advantage2 を起動してリマップを設定する
- アプリを終了したら、再度 progm + F1でvドライブを閉じる
- リマップ設定のバックアップが qwerty.txt にある
- vドライブの
active/qwerty.txt
のバックアップ
- vドライブの
- Expert Mouse Wireless TrackBall
- 設定ファイル: KensingtonWorks.json
ボタン | |
ポインター | |
スクロール |
- 英語辞書 : Mouse Dictionary
- Chrome拡張の高速な英語辞書ツールをつくりました(Mouse Dictionary) - Qiita
- 英辞郎のデータ
- 起動ショートカットキー
- 設定手順
- chrome://extensions/shortcuts で設定ページを開く
Cmd + D
- keymapper
Shift+V
:[${title}](${url})
Shift+Cmd+V
:[${title} ${url}]
- Talend API Tester
- AWS Extend Switch Roles
- Mac備え付けキーボードのチャタリングを緩和するために利用
- 設定ファイル: unshaky.config
- ブラウザのアドレスバーに
data:text/html, <body contenteditable>
# ランダムな文字列を生成する
# https://qiita.com/Vit-Symty/items/5be5326c9db9de755184
cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 5000
> tr -dc 'a-zA-Z0-9' 含める文字種
> fold -w 16 生成する文字列の文字数
> head -n 32 生成する件数