Skip to content

Instantly share code, notes, and snippets.

View kasperg's full-sized avatar

Kasper Garnæs kasperg

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@kasperg
kasperg / plantml.yaml
Created October 1, 2019 13:20
GitHub Actions workflow to render and commit updated PlantUML diagrams
on:
push:
paths:
- 'docs/*.puml'
name: PlantUML
jobs:
generate_images:
name: Update images
runs-on: ubuntu-latest
@kasperg
kasperg / ding2-github-prs.user.js
Last active April 20, 2018 13:37
Ding2 improved GitHub pull requests
// ==UserScript==
// @name Ding2 improved GitHub pull requests
// @namespace https://github.com/ding2
// @include https://github.com/ding2/*/pull/*
// @require https://cdn.rawgit.com/jfriend00/docReady/1879d8d84c9a697792958af65be7c115079671a1/docready.js
// @version 1
// ==/UserScript==
var commentExpander = function() {
document.querySelectorAll('.outdated-comment').forEach(function (element) {
@kasperg
kasperg / dlite.txt
Created April 20, 2016 18:47
Volume IO: Docker for Mac vs. Dlite - based on https://github.com/danquah/docker-php-fileperf
Volume-based
Performing 3 volume-based tests with 10000 files of 1KB
Run 1
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 25.92 ms
Got status of 10000 files in 2.01 ms
Read 10000 files in 5.46 ms
** Total duration: 33.39 **
Run 2
@kasperg
kasperg / config.php
Last active August 28, 2015 04:00
git-glue configuration file for ding2
<?php
return array(
// The name of the branches where changes will be committed to.
'workingBranch' => 'local',
// A map of repositories which should be merged into the target repository and
// their intended subdirectory within the target repository.
'sourceRepos' => array(
'https://github.com/ding2/ddbasic' => 'themes/ddbasic',
'https://github.com/ding2/alma' => 'modules/alma',
@kasperg
kasperg / .gitignore
Last active August 29, 2015 14:25
Glue multiple git repositories into one
/vendor/
Some text. Now with more! Even moar!
@kasperg
kasperg / NAICSList.php
Created November 11, 2014 20:12
wsdl2phpgenerator-arrayof-types
<?php
class NAICSList
{
/**
*
* @var int $Records
*/
protected $Records = null;
@kasperg
kasperg / ProjectItem.php
Created July 24, 2014 17:15
wsdl2phpgenerator base type generation demo
<?php
class ProjectTypeItem
{
/**
*
* @var string $project
* @access public
*/
{
"name": "wsdl2phpgenerator/wsdl2phpgenerator-test",
"description": "Composer test for Wsdl2PhpGenerator",
"minimum-stability": "stable",
"authors": [
{
"name": "Kasper Garnæs",
"email": "kasper.garnaes@gmail.com"
}
],