Skip to content

Instantly share code, notes, and snippets.

View DaffyDuke's full-sized avatar

Olivier Duquesne DaffyDuke

View GitHub Profile
@owulveryck
owulveryck / main.go
Last active March 7, 2018 06:36
TOSCA to Graph
package main
import (
"fmt"
"log"
"os"
"github.com/gonum/graph/encoding/dot"
"github.com/owulveryck/toscalib"
"github.com/owulveryck/toscalib/graph"
@cbrocas
cbrocas / gist:22110f7bf8bff7ca57eee052639a5a84
Created February 26, 2018 12:00
create bootable usb key from ISO *with* sync of the copy (no more data in cache).
dd if=image.iso of=/dev/sdx bs=4M status=progress && sync
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
@owulveryck
owulveryck / test.ksh
Created December 11, 2017 15:26
Progress bar ksh
#!/bin/ksh
set -A PROGRESS '|' '/' '-' '\\'
i=0
while true
do
let i+=1
if [ -t 0 ]; then
#do interactive stuff
echo -e -n "Waiting for the VM to be up ${PROGRESS[$(expr $i % 4)]}\r"
fi
@owulveryck
owulveryck / NordAgileTour2017_J1.md
Last active November 16, 2017 09:12 — forked from DaffyDuke/NordAgileTour2017_J1.md
NordAgileTour2017

Introduction

Ce lundi 13 novembre 2017, Audric Duchet et Olivier Duquesne étions participants à l'Agile Tour 2017, une conférence orientée développement.
Le programme se trouve ici

Les conférences auxquelles nous avons participées

L'enfance perpétuelle: survivre dans une industrie qui croit toujours au Père Noël

Laurent Bossavit, @Morendil, un mec qui bosse chez beta.gouv.fr nous fait un rappel historique sur l'informatique, le développement en général.

@jnahelou
jnahelou / getTerraformProviders.sh
Last active November 10, 2017 10:21
Download latest providers from Terraform repository
#!/bin/bash
while IFS= read -r provider
do
VERSION=`curl -s https://releases.hashicorp.com/${provider}/ | egrep -oh 'terraform-provider-[a-z0-9]+/[0-9\.]+' | sort | uniq | tail -n1`
FILENAME=`echo $VERSION | sed 's;/;_;g'`
echo "https://releases.hashicorp.com/${VERSION}/${FILENAME}_linux_amd64.zip"
wget -O "/usr/local/terraform/toolbox/providers/${FILENAME}_linux_amd64.zip" "https://releases.hashicorp.com/${VERSION}/${FILENAME}_linux_amd64.zip"
done < <(curl -s https://releases.hashicorp.com/ | egrep -oh 'terraform-provider-[a-z0-9]+' | sort | uniq)
find /usr/local/terraform/toolbox/providers/ -name '*.zip' -exec unzip -o -d /usr/local/terraform/toolbox/providers/ {} \;
find /usr/local/terraform/toolbox/providers/ -name '*.zip' -exec rm -f {} \;
@VladimirPal
VladimirPal / neomuttrc
Last active May 10, 2026 15:02
Minimal neomutt config for gmail imap
set imap_user="mail.vpal@gmail.com"
set imap_pass=`/usr/bin/security find-generic-password -w -a 'mail.vpal@gmail.com' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@owulveryck
owulveryck / AAaa note.md
Last active January 10, 2024 08:24
havre / a docker like that runs an embedded squashfs image

About

This is a proof of concept of a portable operating system a-la-docker.

It is a single binary that contains an image of an OS in SquashFS and the binary to run it.

a make will build the binary with an embedded alpine image. make havre-xenial will build a binary with an embedded ubuntu image.

What does the binary do?

@F21
F21 / gist:08bfc2e3592bed1e931ec40b8d2ab6f5
Last active October 23, 2022 12:36
Minikube RBAC Quick Start
minikube start --kubernetes-version=v1.7.0 --extra-config=apiserver.Authorization.Mode=RBAC
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
minikube dashboard
@sroccaserra
sroccaserra / 2017-06-15_Entropie_du_logiciel.md
Last active April 27, 2022 12:15
Entropie du logiciel : dette technique et complexité accidentelle (Agile France 2017)

Entropie du logiciel : dette technique et complexité accidentelle

2017-06-15

Mes notes sur la session de @Lilobase à @AgileFrance 2017.

Voir aussi : les slides de la session.

Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau