Skip to content

Instantly share code, notes, and snippets.

View AlexRogalskiy's full-sized avatar
๐Ÿ›ฐ๏ธ
Work on stuff that matters

Alexander AlexRogalskiy

๐Ÿ›ฐ๏ธ
Work on stuff that matters
View GitHub Profile
# 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
@AlexRogalskiy
AlexRogalskiy / OrderManagement.java
Created October 9, 2022 21:56 — forked from jboner/OrderManagement.java
Demo of an Event-driven Architecture in Akka and Java. Show-casing Events-first DDD, Event Sourced Aggregates, Process Manager, etc.
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;
@AlexRogalskiy
AlexRogalskiy / latency.txt
Created October 9, 2022 21:54 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
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
@AlexRogalskiy
AlexRogalskiy / emojiparty.zsh-theme
Created September 3, 2022 08:09 — forked from brennv/emojiparty.zsh-theme
An emoji happy oh-my-zsh theme: a blend of random-emoji and terminalparty
# emojiparty: a blend of random-emoji and terminalparty
PROMPT_EMOJI=(๐Ÿถ ๐Ÿฑ ๐Ÿญ ๐Ÿน ๐Ÿฐ ๐Ÿป ๐Ÿผ ๐Ÿจ ๐Ÿฏ ๐Ÿฆ ๐Ÿฎ ๐Ÿท ๐Ÿฝ ๐Ÿต ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿ’ ๐Ÿ” ๐Ÿง \
๐Ÿฆ ๐Ÿค ๐Ÿฃ ๐Ÿฅ ๐Ÿบ ๐Ÿ— ๐Ÿด ๐Ÿฆ„ ๐Ÿ ๐Ÿ› ๐ŸŒ ๐Ÿœ ๐Ÿ•ท ๐Ÿฆ‚ ๐Ÿ  ๐ŸŸ ๐Ÿก ๐Ÿฌ ๐Ÿณ ๐Ÿ‹ ๐Ÿ† ๐Ÿ… ๐Ÿƒ ๐Ÿ‚ \
๐Ÿ„ ๐Ÿช ๐Ÿซ ๐Ÿ˜ ๐Ÿ ๐Ÿ ๐Ÿ‘ ๐ŸŽ ๐Ÿ– ๐Ÿ€ ๐Ÿ ๐Ÿ“ ๐Ÿฆƒ ๐Ÿ•Š ๐Ÿ• ๐Ÿฉ ๐Ÿˆ ๐Ÿ‡ ๐Ÿฟ ๐ŸŽ‹ ๐Ÿ‚ ๐ŸŒพ ๐ŸŒบ \
๐ŸŒป ๐ŸŒท ๐ŸŒผ ๐ŸŒธ ๐Ÿ’ ๐ŸŒฐ ๐ŸŽƒ ๐Ÿš ๐Ÿ•ธ ๐Ÿš• ๐Ÿš™ ๐ŸšŒ ๐ŸšŽ ๐Ÿš“ ๐Ÿš‘ ๐Ÿš ๐Ÿšš ๐Ÿšœ ๐Ÿ ๐Ÿšฒ ๐Ÿš” ๐Ÿš ๐Ÿš˜ ๐Ÿš– \
๐Ÿšก ๐ŸšŸ ๐Ÿšƒ ๐Ÿš‹ ๐Ÿš… ๐Ÿšˆ ๐Ÿšž ๐Ÿš† ๐Ÿš‡ ๐ŸšŠ ๐Ÿš‰ ๐Ÿš ๐Ÿ›ฉ ๐Ÿ›ซ ๐Ÿ›ฌ โ›ต๏ธ ๐Ÿ›ฅ ๐Ÿšค โ›ด ๐Ÿ›ณ ๐Ÿš€ ๐Ÿ›ฐ ๐Ÿ’บ ๐Ÿšง \
๐Ÿ˜€ ๐Ÿ˜ฌ ๐Ÿ˜ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜… ๐Ÿ˜† ๐Ÿ˜‡ ๐Ÿ˜‰ ๐Ÿ˜Š ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‹ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜š ๐Ÿ˜œ ๐Ÿ˜ ๐Ÿ˜› ๐Ÿค‘ ๐Ÿค“ \
๐Ÿ˜Ž ๐Ÿค— ๐Ÿ˜ ๐Ÿ˜ถ ๐Ÿ˜ ๐Ÿ˜‘ ๐Ÿ˜’ ๐Ÿ™„ ๐Ÿค” ๐Ÿ˜ณ ๐Ÿ˜ž ๐Ÿ˜Ÿ ๐Ÿ˜  ๐Ÿ˜” ๐Ÿ˜• ๐Ÿ™ ๐Ÿ˜ฃ ๐Ÿ˜– ๐Ÿ˜ฏ ๐Ÿ˜ฆ ๐Ÿ˜ง ๐Ÿ˜ต ๐Ÿ˜ฒ ๐Ÿค \
๐Ÿ˜ท ๐Ÿค’ ๐Ÿค• ๐Ÿ˜ด ๐Ÿ’ค ๐Ÿ’€ ๐Ÿ‘ฝ ๐Ÿค– ๐Ÿ˜บ ๐Ÿ˜ธ ๐Ÿ˜ป ๐Ÿ˜ผ ๐Ÿ˜ฝ ๐Ÿ˜พ โšฝ๏ธ ๐Ÿ€ ๐Ÿˆ ๐Ÿ ๐Ÿ‰ ๐ŸŽฑ ๐ŸŒ ๐Ÿธ ๐Ÿ’ ๐Ÿ‘ \
@AlexRogalskiy
AlexRogalskiy / zsh.md
Created July 14, 2022 22:35 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@AlexRogalskiy
AlexRogalskiy / .htaccess
Created July 14, 2022 22:34 — forked from mumairofficial/.htaccess
For production distribution with text compression and other cache setting
#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]
{
"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":
@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 19:01 — forked from DamonOehlman/README.md
Provisioning of node + nginx designed for use with vagrant shell provisioner. No need for chef, puppet.

This is a simple shell script that is designed to provision both nginx and node on your machine. I primarily wrote it for use with Vagrant and an example Vagrantfile is included in the Gist as well.

@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 19:00 — forked from DamonOehlman/README.md
Ubuntu 13.04 Dell XPS 13 Hacks - Things you occassionally need to do to keep your Ubuntu installation on a Dell XPS happy.

Brightess Fix

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