mac

macのカーソル移動速度を早くする

mac

よく忘れるのでメモ defaults write -g InitialKeyRepeat -int 12 # normal minimum is 15 (225 ms) defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) Alacritty!iTermより早いよ! - Qiita

PhpStormでリフォーマット

Command + Alt + L

MacでXAMPP

/Applications/XAMPP/etc/httpd.conf /Applications/XAMPP/etc/extra/httpd-vhosts.conf /Applications/XAMPP/etc/php.ini 辺りを弄っていけばそれっぽい環境になるんじゃないか XAMPPの文字化けをphp.iniの設定で直す方法【初心者向け】 | TechAcademyマガ…

MAMPのApacheが起動しない

MAMPで Apache couldn't be started. Please check your MAMP installation and configuration. となる場合、Mac標準のapacheと干渉している場合がある。 apachectl status apachectl stop

Macでスクリーンショット

# 画面全体 cmd + shift + 3 # 選択範囲 cmd + shift + 4 # 選択ウィンドウ cmd + shift + 4 => space # 保存場所変更 defaults write com.apple.screencapture location ~/gd/screencapture/ killall SystemUIServer # ファイルの接頭辞変更 defaults write…

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

macOSをMojaveにアップグレードした直後あたりから、terminal上でタイトルのエラーが発生するようになった。 xcode-select --install でエラーが出なくなった。 Mac OS Sierraにしたらgitコマンド、ターミナル上にエラーが出てしまった。

Homebrewでインストールされるrenameコマンド

こんな感じで使う。 brew install rename rename 's/^foo/bar/' *.txt rename // plasmasturm.org

SCM Breezeを久しぶりにgit pullしたらおかしくなりかけた?

scmbreeze/scm_breezeを更新した後くらいから、git-credential-osxkeychainがパスワード入力を求めるようになった。 パスワード入力して、常に許可をクリックしたら表示されなくなった。 (そりゃそうか) それと同時期に、 /Users/i/.scm_breeze/lib/git/al…

MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)のハードディスク初期化

mac

パーミッションがおかしくなってしまった場合、他のハードディスクを利用して初期化(データはなくなる) macOS をインストールする方法 - Apple サポートを参考に、空いている外付けドライブにmacOSをインストール 外付けドライブをMacBook Proに接続し、そ…

xdebug導入

ブラウザでphpinfo()を表示して、php.iniのパスを確認。 php.iniの最終行のあたり [xdebug] ;zend_extension="/Applications/MAMP/bin/php/php7.2.1/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so" を [xdebug] zend_extension="/Applications/MA…

Macでcron

Macでcron viだと上手く設定できないっつうことなんで、 export EDITOR=nano crontab -e MAILTO = foo@foo.com */1 * * * * /Users/w/workspace/t/api.sh #1-59/15 * * * * /Users/w/workspace/t/api.sh

macにlaravelインストール(composerで)

brew isntall composer composer global require "laravel/installer" cd ~/workspace/foo git init git config user.name w git config user.email w@w.com ~/.composer/vendor/laravel/installer/laravel new approot これだと最新版のlaravelがインストー…