Skip to content

Instantly share code, notes, and snippets.

@alwinmark
alwinmark / Error.md
Created September 17, 2019 07:44
OpenEBS Errors

Ok. Here is one failing Pod:

k get pods -o yaml | grep bemdb
      openshift.io/deployment-config.name: bemdb
      openshift.io/deployment.name: bemdb-5
    generateName: bemdb-5-
      app: bemdb
      deployment: bemdb-5
      deploymentconfig: bemdb
@alwinmark
alwinmark / journald
Last active December 2, 2015 11:43
Experienced problems with etcd on vagrant environment, trying to deploy elastic search from: https://github.com/chrisjenx/coreos-elk
-- Logs begin at Wed 2015-12-02 11:16:35 UTC, end at Wed 2015-12-02 11:41:54 UTC. --
Dec 02 11:16:35 localhost systemd-journal[106]: Runtime journal (/run/log/journal/) is currently using 6.2M.
Maximum allowed usage is set to 49.8M.
Leaving at least 74.8M free (of currently available 492.4M of space).
Enforced usage limit is thus 49.8M.
Dec 02 11:16:35 localhost systemd-journal[106]: Runtime journal (/run/log/journal/) is currently using 6.2M.
Maximum allowed usage is set to 49.8M.
Leaving at least 74.8M free (of currently available 492.4M of space).
Enforced usage limit is thus 49.8M.
Dec 02 11:16:35 localhost kernel: Initializing cgroup subsys cpuset
@alwinmark
alwinmark / purgeVirtualbox.sh
Created November 2, 2015 09:48
Deletes everything from Virtualbox. Usefull for CI/CD
# loop over all existing VMs
for i in $(VBoxManage list vms | sed 's/.*{\(.*\)}/\1/g'); do
# power them off and delete them
VBoxManage controlvm $i poweroff && VBoxManage unregistervm $i;
# delete everything left
rm -rf ~/VirtualBox VMs
done;
@alwinmark
alwinmark / error.log
Created March 24, 2014 11:12
bootstrap_salt.sh
Linux squeeze64 2.6.32-5-amd64 #1 SMP Fri May 10 08:43:19 UTC 2013 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
* INFO: sh -- Version 2014.03.10-1
@alwinmark
alwinmark / fizzbuzz.go
Created January 22, 2014 08:41
Fizzbuzz Example with channels. So its possible to take as many Fizzbuzz items as you want. [1] infos about go and channels: https://docs.google.com/presentation/d/1IzRQAZ5oWhAaD62WNP7QT44b7QAf0S6uBPTtNXz9c6A/edit?pli=1#slide=id.g62e28700_0_6
package main
import (
"fmt"
"strconv"
)
func Fizzbuzz(in <-chan int, out chan<- string) {
for {
x := <-in
@alwinmark
alwinmark / AbstractApplication.php
Created December 23, 2013 16:06
Possible abstract Application class for the Lousson Project
<?php
namespace Lousson\Application;
use Lousson\Config\AnyConfig;
use Lousson\Config\Builtin\BuiltinConfig;
use Lousson\Config\AnyConfigLoader;
use Lousson\Config\Builtin\BuiltinConfigLoader;
require 'PEAR/Config.php';

B-Events Code Kata

some fiction to set the mood (skip in favor for facts fast)

Some crazy management guy at Unbelievable Genius Org (UGO) has decided that the sanest thing would be to reboot their platform / services part. Money is not an issue ;) .

So it was proclaimed that the services should be rewritten from scratch, with the software design and language of your choosing.

To get things going here are the first 3 business transaction that need to be reimplemented.