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
# 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"
@pjvds
pjvds / install-mono-on-docker-container.sh
Created October 27, 2013 17:54
Script that installs Mono 3.2.3 on ubuntu docker container.
apt-get install -y wget build-essential gettext autoconf automake libtool
wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2
bunzip2 -df mono-3.2.3.tar.bz2
tar -xf mono-3.2.3.tar
cd mono-3.2.3
./configure --prefix=/usr/local; make; make install
rm -rf /tmp/*
apt-get remove --purge wget build-essential gettext autoconf automake libtool
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;
@pjvds
pjvds / wercker.yml
Last active January 11, 2019 11:41
A wercker.yml file that enables an virtual display at the beginning of the build. This should solve the following errors: * cannot connect to X server
box: wercker/ubuntu12.04-ruby1.9.3
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
- script:
name: Enable virtual display
code: |-
# Start xvfb which gives the context an virtual display
[00001,16,07:39:48.247] Error while reading drive info for path /var/local/EventStore/bin/eventstore/release/anycpu/db. Message: The drive name does not exist
Parameter name: driveName.
[00001,06,07:40:18.273] Error while reading drive info for path /var/local/EventStore/bin/eventstore/release/anycpu/db. Message: The drive name does not exist
Parameter name: driveName.
[00001,06,07:40:48.280] Error while reading drive info for path /var/local/EventStore/bin/eventstore/release/anycpu/db. Message: The drive name does not exist
Parameter name: driveName.
[00001,17,07:41:18.292] Error while reading drive info for path /var/local/EventStore/bin/eventstore/release/anycpu/db. Message: The drive name does not exist
Parameter name: driveName.
[00001,16,07:41:48.300] Error while reading drive info for path /var/local/EventStore/bin/eventstore/release/anycpu/db. Message: The drive name does not exist
Parameter name: driveName.
#!/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: