//show all on port:80
sudo lsof -i :80
//and kill
kill -9 <PID>
//kill all httpd
sudo killall httpd
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist
Добавляем .pem ключ
cd /key_directory
chmod 400 key.pem
ssh-add -K key.pem
Обновление php
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
export PATH=/usr/local/php5/bin:$PATH
Запустить php сервер
php -S localhost:9000
PATH
Global /etc/profile
For user ~/.bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
Set & check
source /etc/profile
or
source ~/.bash_profile
check it
echo $JAVA_HOME
Show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
Clear file-icons cache
sudo rm -rf /Library/Caches/com.apple.iconservices.store
Simple local server
python3 -m http.server --cgi 8080
Split file
split -b 1024m filename