start new:
tmux
start new with session name:
tmux new -s myname
| --colour | |
| -I app |
| #!/usr/bin/env ruby | |
| require 'net/telnet' | |
| cache_dump_limit = 100 | |
| localhost = Net::Telnet::new("Host" => "localhost", "Port" => 11211, "Timeout" => 3) | |
| slab_ids = [] | |
| localhost.cmd("String" => "stats items", "Match" => /^END/) do |c| | |
| matches = c.scan(/STAT items:(\d+):/) | |
| slab_ids = matches.flatten.uniq | |
| end |
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |