๐ฐ๏ธ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample.eventdriven.java; | |
import akka.actor.*; | |
import akka.persistence.AbstractPersistentActor; | |
import scala.concurrent.duration.Duration; | |
import java.io.Serializable; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.TimeoutException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# emojiparty: a blend of random-emoji and terminalparty | |
PROMPT_EMOJI=(๐ถ ๐ฑ ๐ญ ๐น ๐ฐ ๐ป ๐ผ ๐จ ๐ฏ ๐ฆ ๐ฎ ๐ท ๐ฝ ๐ต ๐ ๐ ๐ ๐ ๐ ๐ง \ | |
๐ฆ ๐ค ๐ฃ ๐ฅ ๐บ ๐ ๐ด ๐ฆ ๐ ๐ ๐ ๐ ๐ท ๐ฆ ๐ ๐ ๐ก ๐ฌ ๐ณ ๐ ๐ ๐ ๐ ๐ \ | |
๐ ๐ช ๐ซ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฆ ๐ ๐ ๐ฉ ๐ ๐ ๐ฟ ๐ ๐ ๐พ ๐บ \ | |
๐ป ๐ท ๐ผ ๐ธ ๐ ๐ฐ ๐ ๐ ๐ธ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฒ ๐ ๐ ๐ ๐ \ | |
๐ก ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฉ ๐ซ ๐ฌ โต๏ธ ๐ฅ ๐ค โด ๐ณ ๐ ๐ฐ ๐บ ๐ง \ | |
๐ ๐ฌ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ค ๐ค \ | |
๐ ๐ค ๐ ๐ถ ๐ ๐ ๐ ๐ ๐ค ๐ณ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฃ ๐ ๐ฏ ๐ฆ ๐ง ๐ต ๐ฒ ๐ค \ | |
๐ท ๐ค ๐ค ๐ด ๐ค ๐ ๐ฝ ๐ค ๐บ ๐ธ ๐ป ๐ผ ๐ฝ ๐พ โฝ๏ธ ๐ ๐ ๐ ๐ ๐ฑ ๐ ๐ธ ๐ ๐ \ |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#REDIRECT ROUTES TO INDEX (fixes broken routes with angular) | |
RewriteEngine on | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteCond %{HTTPS} off | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^(.*) /index.html [NC,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Agila Theme/Agila Classic Oceanic Next.tmTheme", | |
"default_encoding": "UTF-8", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"folder_exclude_patterns": |
When brightness controls stop responding manually trigger a brightness update. Once this is done brightness controls seem to respond again. Not sure if the lspci
command is required, when my linux foo is stronger I'm sure I'll know...
lspci -nn | grep VGA
echo 3500 | sudo tee /sys/class/backlight/intel_backlight/brightness