Please enable JavaScript.
Coggle requires JavaScript to display documents.
Mac OSX (issue (Dictionary ภาษาไทย เป็น อังกฤษ หน้าขาว (cd…
Mac OSX
issue
path php.ini
sudo cp /private/etc/php.ini.default /private/etc/php.ini
Dictionary ภาษาไทย เป็น อังกฤษ หน้าขาว
cd /Library/Dictionaries/Thai Dictionaries.dictionary/Contents
Copy Style ใส่บรรทัดล่างสุด
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
nano .zshrc uncomment
export Lang=en_US.UTF-8
source .zshrc
wireshark error
https://stackoverflow.com/questions/41126943/wireshark-you-dont-have-permission-to-capture-on-that-device-mac
หากติดตั้ง Brew php version ที่ต้องการแล้วระบบไม่รู้จัก ให้ใช้ script ดังนี้ echo 'export
PATH="/usr/local/opt/php@7.3
/bin:$PATH"' >> ~/.zshrc echo 'export
PATH="/usr/local/opt/php@7.3
/sbin:$PATH"' >> ~/.zshrc
Zsh: command not found - brew
echo 'eval $(/opt/homebrew/bin/brew shellenv)' /Users/"YOUR USER NAME"/.zprofile
code . cannot open vscode
Command Palette via (⇧⌘P) and type shell command
zsh command not found
/usr/bin/open ~/.zshrc* -a TextEdit
Tip & Tick
Copy file or folder between server and local
scp -r
root@ip
:directory
local_directory
scp
root@ip
:directory
local_directory
scp
file_name
root@ip
:/
server_director
scp -r
folder_name
root@ip
:/
server_director
scp -r
root@178.128.217.228
:hws_prod/uploads/images Desktop
generate ssh
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
Find pid for kill process
sudo lsof -nPi :8080
kill -9 pid
lsof -P | grep ':3000' | awk '{print $2}' | xargs kill -9
Mute Macbook
https://macdownload.informer.com/mute-me/download/#downloading
Install
nvm
brew update
brew install nvm
mkdir ~/.nvm
nano ~/.bash_profile
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
echo $NVM_DIR
source ~/.bash_profile
nvm alias default 10.15.3
brew
iterm2 + zsh + oh-my-zsh
brew install zsh
curl -L
https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh
| sh
sudo nano ~/.zshrc
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
git clone
https://github.com/zsh-users/zsh-autosuggestions
~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone
https://github.com/zsh-users/zsh-syntax-highlighting.git
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
brew cask install iterm2
git clone
https://github.com/bhilburn/powerlevel9k.git
~/.oh-my-zsh/custom/themes/powerlevel9k
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
iterm2 > Preferences > Profile > text > font (Font Hack Nerd)
Add to setting.json vscode
: "terminal.integrated.fontFamily": "Hack Nerd Font"
set jump word :
Preferences > Profile > Keys (Presets)
https://www.freecodecamp.org/news/jump-between-words-using-keyboard-shortcuts-in-iterm-fb1a70cecf79/
custom theme
https://bl.ocks.org/smileart/3750104
fix vscode
"terminal.integrated.fontFamily": "Meslo LG L DZ for Powerline"
vscode :
brew cask install visual-studio-code
php7.2 :
brew install php72
webp
xattr -d com.apple.quarantine ~/Library/QuickLook/WebpQuickLook.qlgenerator
brew cask install WebPQuickLook
https://getgrav.org/blog/macos-bigsur-apache-multiple-php-versions
composer
curl -sS
https://getcomposer.org/installer
| php
php composer.phar
mv composer.phar /usr/local/bin/composer
composer
IOS
Test App Iphone
beta.apple.com
iOS > Install profile Click Download profile
(iphone) Setting click install profile
Get Started click enroll your iOS device
Restart iphone > Settings > General > profile