Install emacs view brew:
brew tap railwaycat/emacsmacport
brew install --with-native-comp --with-imagemagick --with-natural-title-bar --with-starter emacs-macInstall latest mu (including mu4e):
brew install --HEAD mu
| #!/bin/sh | |
| set -eu | |
| export LISPDIR="${HOME}/.emacs.d/lisp" | |
| export MUCOMMIT="HEAD-"$(git log -n1 --decorate=no --shortstat --abbrev-commit | head -n1 | awk '{print $2}') | |
| if [ `uname -m` = "arm64" ]; then | |
| export HBPREFIX="/opt/homebrew/Cellar" | |
| else |
Install emacs view brew:
brew tap railwaycat/emacsmacport
brew install --with-native-comp --with-imagemagick --with-natural-title-bar --with-starter emacs-macInstall 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 |