Install emacs view brew:
brew tap railwaycat/emacsmacport
brew install --with-native-comp --with-imagemagick --with-natural-title-bar --with-starter emacs-mac
Install latest mu (including mu4e):
brew install --HEAD mu
Install emacs view brew:
brew tap railwaycat/emacsmacport
brew install --with-native-comp --with-imagemagick --with-natural-title-bar --with-starter emacs-mac
Install latest mu (including mu4e):
brew install --HEAD mu
Save this as curl-perf.cfg
:
{\n
"time_connect": %{time_connect},\n
"time_pretransfer": %{time_pretransfer},\n
"time_starttransfer": %{time_starttransfer},\n
"time_total": %{time_total},\n
"size_request": %{size_request},\n
"size_upload": %{size_upload},\n
"size_download": %{size_download},\n
#!/bin/sh | |
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
defaults read com.apple.desktopservices |
To build without debug symbols:
go build -ldflags="-s -w"
grep -A1 Normal /proc/zoneinfo ; echo "--"; sysctl vm.min_free_kbytes ; echo "--"; numactl -H | grep free
In order to avoid FreeBSD ntpd listen on wildcard interface,
add following lines to /etc/ntp.conf
:
interface ignore wildcard
interface listen 10.0.0.1
build/update database:
cd $PROJ_DIR
find . -path .git -path .svn -prune -o -name "*.[ch]" > cscope.files
cscope -bqk
browse code:
cscope -d
#!/bin/bash | |
# Based on script by William Lam - http://engineering.ucsb.edu/~duonglt/vmware/ | |
# Bring CPUs online | |
for CPU_DIR in /sys/devices/system/cpu/cpu[0-9]* | |
do | |
CPU=${CPU_DIR##*/} | |
echo "Found cpu: '${CPU_DIR}' ..." | |
CPU_STATE_FILE="${CPU_DIR}/online" | |
if [ -f "${CPU_STATE_FILE}" ]; then |
AGENT_SCRIPT=${HOME}/load-agent.sh | |
while true; do | |
[ -r ${AGENT_SCRIPT} ] && source ${AGENT_SCRIPT} | |
if [ -n "$SSH_AGENT_PID" ]; then | |
# ensure the variable actually reflects a running ssh-agent process | |
ps -p $SSH_AGENT_PID | grep -q ssh-agent$ && break | |
fi | |
# SSH_AGENT_PID is either not set or has stale PID | |
echo "Running ssh-agent" |