-
Notifications
You must be signed in to change notification settings - Fork 0
Thierry Lam edited this page May 9, 2025
·
15 revisions
-
Restarting apache
sudo /usr/sbin/apachectl restart
-
Apache default
DocumentRoot
is at/Library/WebServer/Documents
-
Install mtr
-
Starting memcached as a daemon
memcached -d -p 8000
-
Speed up terminal startup
sudo rm -rf /private/var/log/asl/*.asl
-
Find a PID running on a port
8080
and locate the processlsof -Pi :8080 ps -ax | grep -i <PID>
sudo dscl . -create /Users/postgres
sudo dscl . -create /Users/postgres UserShell /bin/bash
sudo dscl . -passwd /Users/postgres postgres
sudo dscl . -create /Users/postgres UniqueID 502
sudo dscl . -create /Users/postgres PrimaryGroupID 1000
sudo dscl . -create /Users/postgres NFSHomeDirectory /Users/postgres
View user ids:
dscl . -list /Users uid
- Once Xcode has been installed from the appstore, open Xcode and click on
Preferences...
- Click
Downloads
, selectCommand Line Tools
and click onInstall
.
xcode-select --install
Installing python's cryptography gives that error. Explicitly set CFLAGS
to:
export CFLAGS="-I/usr/include"
pip install cryptography
export CFLAGS="-I$(xcrun --show-sdk-path)/usr/include/sasl"
pip install python-ldap
Remove old SDKs under /Developers/SDKs/
cat ~/.ssh/id_rsa.pub | tr -d '\n' | pbcopy
- Download the One Dark.terminal and double click on it to automatically add it to the list of themes
- Open
Terminal
,Preferences
, you will find theOne Dark
them in the list of themes. Set it toDefault
to use it.
Sequel Ace