Skip to content

Instantly share code, notes, and snippets.

Avatar

Olivier Wulveryck owulveryck

View GitHub Profile
@owulveryck
owulveryck / AAA README.md
Created February 1, 2023 15:12
Random Coffee
View AAA README.md

cat data | go run main.go

@owulveryck
owulveryck / AAA README.md
Last active December 19, 2022 20:41
WTG: New attempt for a Wardley DSL
View AAA README.md

Download the utilities

Download the utility for your plateform from the GitHub repo

Example for Linux:

curl -L -o - https://github.com/owulveryck/wardleyToGo/releases/download/v0.6.0-newdsl/wardleyToGo_0.6.1-newdsl_Linux_x86_64.tar.gz | tar xzvf -

Generate a file

@owulveryck
owulveryck / figure1.go
Last active November 30, 2022 06:54
Article Wardley sources
View figure1.go
// Stages of evolution
package main
import (
"image/color"
"log"
"math"
"os"
"golang.org/x/image/font/opentype"
@owulveryck
owulveryck / main.go
Last active October 19, 2022 08:36
Simon Wardley's (sarcastic) quick route to building a strategy
View main.go
// https://blog.gardeviance.org/2014/07/a-quick-route-to-building-strategy.html
package main
import (
"html/template"
"math/rand"
"os"
"time"
)
@owulveryck
owulveryck / AAAREADME.md
Last active October 12, 2022 14:01
Wardley Map with Graphviz
View AAAREADME.md

Generate the map

gvpack -u board.gv map.gv annotations.gv | neato -n -Tsvg > map.svg

Generate the gvmap

echo "digraph {$( cat board.gv annotations.gv <(gvmap -e map.gv) | egrep -v "digraph|^}$")}" | neato -n -Tsvg > withgvmap.svg

@owulveryck
owulveryck / sally.ly
Last active August 7, 2022 07:51
Sally - Vasco Rossi - Piano || Lilypond source
View sally.ly
\version "2.22.2"
\header {
title = "Sally"
composer = "Vasco Rossi"
}
harmonies = \chordmode {
d2 d:maj7 |
d1:7 |
View compute-weeks-left.go
package cmd
import (
"encoding/json"
"errors"
"fmt"
"net/http"
)
type TimeTraveler struct {
@owulveryck
owulveryck / AAA README.md
Last active January 3, 2022 16:44
app.yaml environment variables substitution
View AAA README.md

This is a code snippet that reads an "app.yaml" file on stdin; then it:

  • seek for env_variables entry in the file
  • for each key: value pair, it looks for an environment variables named value
  • if it exists, it substitute the value with value found in the environment.

Exemple:

cat app.yaml

@owulveryck
owulveryck / main.go
Last active July 2, 2021 06:00
Simple script to turn a webpage into an epub
View main.go
package main
import (
"log"
"net/http"
"net/url"
"os"
"path/filepath"
"strings"
@owulveryck
owulveryck / AAA sample.md
Last active September 13, 2022 19:34
Trivial server that validates data and send it to kafka
View AAA sample.md

Running the sample:

go run . definition.cue

Getting the OpenAPI

❯ curl http://localhost:8181/openapi returns:

{