sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg glib pkg-config gengetopt | |
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz | |
tar xvf v1.5.4.tar.gz | |
cd libsrtp-1.5.4 | |
./configure --prefix=/usr/local/libsrtp | |
make | |
sudo make install | |
git clone git@github.com:meetecho/janus-gateway.git |
docker rmi $(docker images -q -f dangling=true) |
Ruby Benchmark module: meanings of “user”, “system”, and “real”?
>> Benchmark.bm(7) { |b| b.report('Report:') { s = '' ; 10000.times { s += 'a' } } }
user system total real
Report: 0.150000 0.010000 0.160000 ( 0.156361)
These are the same times that the Unix time command or other typical benchmarking tools would report:
user: the amount of time spent executing userspace code (i.e.: your code),
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
# 16 workers and 1 master | |
worker_processes (rails_env == 'production' ? 16 : 4) | |
# Load rails+github.git into the master before forking workers | |
# for super-fast worker spawn times | |
preload_app true |
Please read original blog post for reference: | |
http://blog.process-one.net/embedding-ejabberd-into-an-elixir-phoenix-web-application/ |
{ | |
"\UF729" = moveToBeginningOfParagraph:; // home | |
"\UF72B" = moveToEndOfParagraph:; // end | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
// Emacs keybindings | |
"^ " = "setMark:"; | |
"~d" = "deleteWordForward:"; | |
"~w" = "copy:"; /* M-w */ | |
"^w" = "deleteWordBackward:"; |
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "", | |
"region": "us-east-1" | |
}, | |
"builders": [ | |
{ | |
"access_key": "{{user `aws_access_key`}}", | |
"ami_name": "packer-linux-janus-{{timestamp}}", |