Skip to content

Instantly share code, notes, and snippets.

View pjvds's full-sized avatar
:octocat:
‏‏‎

Pieter Joost van de Sande pjvds

:octocat:
‏‏‎
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using EventFlow.Aggregates;
using EventFlow.Core;
using EventFlow.Exceptions;
using EventFlow.Logs;
#!/bin/bash
[ -z "$EMAIL" ] && echo "Need to set EMAIL" && exit 1;
[ -z "$PASSWORD" ] && echo "Need to set PASSWORD" && exit 1;
[ -z "$ADMINISTRATIONID" ] && echo "Need to set ADMINISTRATIONID" && exit 1;
[ -z "$IMPORTID" ] && echo "Need to set IMPORTID" && exit 1;
[ -x "$(command -v http)" ] && echo "Need to install httpie" && exit 1;
[ -x "$(command -v jq)" ] && echo "Need to install jq" && exit 1;
rlogin=$(mktemp)
@pjvds
pjvds / gist:c27ad1e73b790e7a3200e1eed8f04166
Created August 24, 2017 14:15 — forked from SzymonPobiega/gist:5220595
DDD/CQRS/ES/Architecture videos

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):

  1. Eric Evans' [What I've learned about DDD since the book]{http://www.infoq.com/presentations/ddd-eric-evans}
  2. Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
  5. Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
  6. Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht
$ helm install -n mongo .
NAME:   mongo
LAST DEPLOYED: Wed Feb  1 17:23:36 2017
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/Service
NAME                       CLUSTER-IP   EXTERNAL-IP   PORT(S)     AGE

Keybase proof

I hereby claim:

  • I am pjvds on github.
  • I am pjvds (https://keybase.io/pjvds) on keybase.
  • I have a public key whose fingerprint is 6BB0 B181 063C 2DEC A5FF D9FB B1FC D173 FE0B 87DA

To claim this, I am signing this object:

#!/bin/bash
matches=( `kubectl get pods | tail -n +2 | grep "$1" | awk '{print $1}'` )
count=${#matches[@]}
if [[ $count -eq 0 ]]; then
echo "no match!"
exit 1
fi
if [[ $count -gt 1 ]]; then
$wercker --debug build
INFO[0000] docker| --> No Docker host specified, checking: unix:///var/run/docker.sock
DEBU[0000] events| BuildStarted
DEBU[0000] options| AWSOptions *main.AWSOptions
DEBU[0000] options| AWSAccessKeyID string =
DEBU[0000] options| AWSRegion string = us-east-1
DEBU[0000] options| AWSSecretAccessKey string =
DEBU[0000] options| S3Bucket string = wercker-development
DEBU[0000] options| S3PartSize int64 = 104857600
DEBU[0000] options| ApplicationID string = hpc
'atom-workspace':
'ctrl-shift-tab': 'tab-switcher:previous'
'ctrl-tab': 'tab-switcher:next'
'.active.pane':
'ctrl-;': 'gocode:toggle'
'atom-text-editor:not(mini) .autocomplete-plus.autocomplete-suggestion-list':
'enter': 'autocomplete-plus:confirm'
'ctrl-j': 'autocomplete-plus:select-next'
'ctrl-k': 'autocomplete-plus:select-previous'
# This script resets the AVM FritzBox router
#
# The procedure is as follow:
# 1. GET request logincheck.lua
# 2. grep the session id from the location header
# 3. POST request reboot.lua with session id
# 4. grep the potentialy new session id from the location header
# 5. GET request on reboot.lua with session id
echo "looking for fritz.box"
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
fs.file-max = 100000
fs.inotify.max_user_watches=100000