Skip to content

Instantly share code, notes, and snippets.

@nivertech
nivertech / DDD, CQRS & ES.md
Created January 25, 2022 12:09 — forked from rasheedamir/DDD, CQRS & ES.md
DDD, CQRS & ES!

To implement command processing we need the following pieces:

  • Commands which request that something should happen, i.e. some state change
  • Events which indicate that something has happened
  • Aggregates that handles Commands and generates Events based on the current state
  • Event store which stores all events that has happened
  • Application services that receives Commands and routes it to the appropriate aggregate

https://github.com/rasheedamir/event-sourcing-in-practice

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MIX_ENV: test

Keybase proof

I hereby claim:

  • I am nivertech on github.
  • I am nivertech (https://keybase.io/nivertech) on keybase.
  • I have a public key ASBH-B46fr8ZOZH514tlt8-bAix6N7UAhhMXU19TPDOLbQo

To claim this, I am signing this object:

@nivertech
nivertech / ants.clje
Created April 16, 2020 19:35 — forked from devstopfix/ants.clje
Rich Hickey's ants simulator ported to Clojure on the BEAM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;
; Original Clojure JVM code :- https://gist.github.com/michiakig/1093917

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@nivertech
nivertech / uk_parl_wikipedia.md
Created October 12, 2017 16:52 — forked from Jonty/uk_parl_wikipedia.md
Every IP address in the UK Parliament netblock that has edited Wikipedia

The houses of parliament netblock is publicly listed:

https://apps.db.ripe.net/search/lookup.html?source=ripe&key=194.60.0.0%20-%20194.60.63.255&type=inetnum

Despite their unwillingness to reveal the UK parliament web proxies in an FOI request, wikipedia allows you to query for /24 blocks. 63 wikipedia queries later, and here's the list of every IP address that has made a wikipedia edit from the UK parliament netblock.

@nivertech
nivertech / AWS.js
Created October 11, 2017 11:23 — forked from zircote/AWS.js
Google Script for Excel and AWS instance pricing + Reserved Instances
/**=
* User: zircote
* Date: 16/10/2013
* Time: 08:59
*/
var SERVICE_HOST = 'http://aws.amazon.com'
var data_sources = {
"linux-od": {
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@nivertech
nivertech / erlang-resources.md
Created April 13, 2017 15:47 — forked from macintux/erlang-resources.md
Erlang online resources