Skip to content

Instantly share code, notes, and snippets.

View tdpauw's full-sized avatar

Thierry de Pauw tdpauw

View GitHub Profile
@tdpauw
tdpauw / vim_crash_course.md
Created September 22, 2022 09:07 — forked from dmsul/vim_crash_course.md
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

NORMAL MODE

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.

@tdpauw
tdpauw / devoxxbe-2017-proposal-feature-branching-is-evil
Last active June 22, 2017 13:10
Feature Branching is Evil abstract for Devoxx BE 2017
Feature branching is gaining in popularity due to the rise of Distributed Version Control Systems like Git and Mercurial.
Mostly because proponents of DVCSs rely on feature branching to sell DVCS. And because of the success of branching models like
GitFlow and GitHub Flow.
Like all powerful tools, there are many ways you can use DVCSs, and not all of them are good. Although the creation of feature
branches became very easy with DVCSs, it does not mean cheap in the long run. It comes with a certain cost which impacts the
stability and speed of your software delivery process.
During this session we will explore some of the reasons teams are using feature branches, what problems are introduced by
using feature branches and what techniques exist to avoid them all together.
@tdpauw
tdpauw / penny-game.md
Last active June 12, 2018 11:43
Playbook describing the Penny Game

Penny Game

This describes the playbook for running the Penny Game game.

The Objective

Process 20 coins through system of the workers using different batch sizes.

The Materials

  • min 10 people
  • 20 coins
@tdpauw
tdpauw / devops-ball-point.md
Last active January 5, 2019 20:05
Playbook of the DevOps Ball Point game

DevOps Ball Point game

This describes the playbook for running the DevOps Ball Point game as shared by John Clapham on Twitter.

The Objective

Pass as many balls as possible through the team into the paper cups.

Materials

  • something to create a wall: 2 flipcharts, a whiteboard, a projection screen or office space dividers
  • 120 balls seems to be the right amount
@tdpauw
tdpauw / gulpfile.js
Last active October 7, 2015 08:46
Example gulpfile.js with index.html generation and live reload
/*jshint node:true */
'use strict';
// var pkg = require('./package.json');
var buildCfg = require( './build.config.js' );
var gulp = require('gulp');
var del = require('del');
var jshint = require('gulp-jshint');
var inject = require('gulp-inject');
@tdpauw
tdpauw / BlowfishExample
Created November 13, 2014 23:03
Cryptography examples in Java for Password Based Encryption, Blowfish and Key Store
import java.security.*;
import javax.crypto.*;
/**
* BlowfishExample.java
*
* This class creates a Blowfish key, encrypts some text,
* prints the ciphertext, then decrypts the text and
* prints that.
*
@tdpauw
tdpauw / count-down-latch.js
Created May 13, 2014 18:23
Countdown latch for AngularJS
(function() {
'use strict';
angular.module('countDownLatch', [])
.factory('CountDownLatch', function() {
var service = {
createInstance: function(countDown, onComplete) {
return {
countDown: function() {