Skip to content

Instantly share code, notes, and snippets.

Avatar

Ingolf Wagner mrVanDalo

View GitHub Profile
View generate-dummy-install.sh
#!/bin/sh
set -e
set -u
TMP_DIR="$(mktemp --directory --suffix .vit)"
VIT_DIR="$TMP_DIR/vit"
TASK_DIR="$TMP_DIR/task"
TASKRC="$TMP_DIR/taskrc"
View synthing
{
"version": 29,
"folders": [
{
"id": "versioning-external",
"label": "versioning-external",
"filesystemType": "basic",
"path": "/home/palo/versioning-external",
"type": "sendreceive",
"devices": [
View MTLS Client Cert generator
{ pkgs ? import <nixpkgs> {} }:
let
openSSLScriptClientCA = pkgs.writeShellScriptBin "create-ca" ''
echo "create CA"
echo
mkdir ca
${pkgs.openssl}/bin/openssl genrsa -aes256 -out ca/ca.key 4096
chmod 400 ca/ca.key
${pkgs.openssl}/bin/openssl req -new -x509 -sha256 -days 730 -key ca/ca.key -out ca/ca.crt
chmod 444 ca/ca.crt
View keybase.md

Keybase proof

I hereby claim:

  • I am mrvandalo on github.
  • I am mrvandalo (https://keybase.io/mrvandalo) on keybase.
  • I have a public key ASChYC4sat_f7UMI5z-4bfXQauusvWeOQUGyfAE1s7A6yQo

To claim this, I am signing this object:

@mrVanDalo
mrVanDalo / gitog2json
Last active Jan 18, 2020
gitlog2json
View gitog2json
from git import Repo
import os
import json
import click
class GitLogger:
"""to provide a log as dict of commits which are json printable"""
def __init__(self, path):
"""Create a GitStepper with the path to the git repository (not a bare repository)"""
@mrVanDalo
mrVanDalo / CMDtoSUB.elm
Created Mar 3, 2018
Elm problem to Route Cmds to Subs
View CMDtoSUB.elm
{-| This sketch should show the problem I have.
I have 2 Modules. The first Module should "receive"
Messages from another module. I could create a large and complex Msg model,
OR I could use Cmd and Sub (I think).
So my Idea is :
Second.Trigger -> Cmd "Send Start" -> Sub "Listen on Start" -> First.Start
^------ this is the part which unclear to me
@mrVanDalo
mrVanDalo / bitwig.nix
Created Jan 2, 2018
My bitwig fhsUser script (to run bitwig with vsts).
View bitwig.nix
# NixOs fhs-user script
# ---------------------
#
# this is a script for NixOS users, to start Bitwig.
# It is quite similar to docker or rkt but it uses system libs
# to create a "normal" Linux environment so dynamic links can find
# everything they need.
# function header
You can’t perform that action at this time.