start new:
tmux
start new with session name:
tmux new -s myname
import System.Random.Mersenne( getStdGen, randoms ) | |
import Time | |
data Point = Point { x::Double, y::Double } deriving( Show ) | |
total = 10000000 | |
main = do | |
testStart <- getClockTime | |
gen <- getStdGen |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script> | |
<script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script> | |
</head> | |
<body> |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
A warning occurred (42 apples) | |
An error occurred |
{ | |
"cmd": ["/usr/local/go/bin/go","build","$file"], | |
"selector" : "source.go", | |
"variants": [ | |
{ "cmd": ["/usr/local/go/bin/go", "run", "$file"], | |
"name": "Run" | |
} | |
] | |
} |
# Get Root | |
sudo su | |
# Download NMON archive | |
cd /tmp | |
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip | |
# Install unzip if you don't have | |
yum install unzip |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
while { | |
let x = foo(); | |
bar(x); | |
x != 0 | |
} {} |
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit