As configured in my dotfiles.
start new:
tmux
start new with session name:
# How Akka maps to EAI Patterns | |
Might be up for debate or just plain wrong. Just some notes I scribbled down some time ago. | |
----------------------------------------------------------------------------------------------------------------- | |
EAI PATTERN AKKA PATTERN REFERENCE | |
----------------------------------------------------------------------------------------------------------------- | |
Point to Point Channel Regular Actor Communication http://www.eaipatterns.com/PointToPointChannel.html | |
Event-Driven Consumer Regular Actor Receive http://www.eaipatterns.com/EventDrivenConsumer.html | |
Message Selector Actor with Stash http://www.eaipatterns.com/MessageSelector.html |
#!/bin/bash | |
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB | |
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864` | |
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152` | |
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK | |
CACHEDIR="/Volumes/RamDiskCache/$USER" |
# prevent the creation of .DS_Store files on network drives | |
# http://hints.macworld.com/article.php?story=2005070300463515 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
#--------------------------------------------------------------------- | |
# Disable/enable Dashboard: | |
# http://hints.macworld.com/article.php?story=20050723123302403 | |
defaults write com.apple.dashboard mcx-disabled -boolean YES |
package com.example; | |
import com.google.common.base.Charsets; | |
import com.google.common.io.Resources; | |
import com.yammer.dropwizard.Service; | |
import com.yammer.dropwizard.cli.EnvironmentCommand; | |
import com.yammer.dropwizard.config.Configuration; | |
import com.yammer.dropwizard.config.Environment; | |
import com.yammer.dropwizard.config.ServerFactory; | |
import com.yammer.dropwizard.lifecycle.ServerLifecycleListener; |
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 |
package com.developerb.dropwizard; | |
import com.yammer.dropwizard.AbstractService; | |
import com.yammer.dropwizard.Service; | |
import com.yammer.dropwizard.cli.Command; | |
import com.yammer.dropwizard.config.Configuration; | |
import org.junit.rules.TestRule; | |
import org.junit.runner.Description; | |
import org.junit.runners.model.Statement; |
As configured in my dotfiles.
start new:
tmux
start new with session name: