Skip to content

Instantly share code, notes, and snippets.

View chgeuer's full-sized avatar
🏠
Working from Düsseldorf

Dr. Christian Geuer-Pollmann chgeuer

🏠
Working from Düsseldorf
View GitHub Profile
namespace AccountSAS
{
using System;
using System.Linq;
using System.Collections.Generic;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Web;
apiVersion: batch/v1
kind: Job
metadata:
name: ls
spec:
template:
spec:
restartPolicy: Never
containers:
- name: ls

Christmas Actor Hackday

Goal of the "Christmas Actor Hack" is to get in touch with the Actor model. That includes:

  • actors (or grains as Orleans calls it, or processes as the Erlang/Elixir community calls it)
  • passing immutable messages between actors
  • each actor having a mailbox which it processes
  • a simple programming model where actor code apprears single-threaded, because concurrency is handled by the actor system
  • different implementations, such as
  • the BEAM (Bogdan's Erlang Abstract Machine), which is the Erlang VM

Pfannkuchen

Zutaten

  • 4 Ei(er)
  • 2 EL Zucker
  • 400 ml Milch
  • 1 Prise(n) Salz
  • 200 g Mehl
  • 1 Msp. Backpulver
#!/bin/bash
/usr/local/bin/dockerd --host=unix:///var/run/docker.sock --storage-driver=vfs &
docker version
#!/usr/bin/env bash
/usr/bin/anaconda/bin/pip install hdfs
@chgeuer
chgeuer / show-vm-sizes.sh
Created October 16, 2017 13:21
show-vm-sizes.sh
for location in $(az account list-locations | jq -r ".[].name"); do
az vm list-sizes -l $location | jq -r "{ \"$location\": [ .[].name ] }" > "${location}.json"
echo "Wrote ${location}.json"
done
@chgeuer
chgeuer / elixirconf-2017-recap.md
Created September 25, 2017 13:59 — forked from KronicDeth/elixirconf-2017-recap.md
Recap of all talks at ElixirConf 2017

Elixir Native UI - Boyd Multerer https://www.youtube.com/watch?v=77FW-jrCyCs

Thinking In Ecto - Darin Wilson https://www.youtube.com/watch?v=YQxopjai0CU

  1. Repository pattern https://youtu.be/YQxopjai0CU?t=2m12s
  2. Explicitness https://youtu.be/YQxopjai0CU?t=5m29s
FROM ubuntu:16.04
WORKDIR /root
RUN apt-get -y update \
&& apt-get -y install sudo \
&& apt-get -y install git \
&& apt-get -y install cmake \
&& apt-get -y install software-properties-common \
&& apt-get -y install build-essential \