Skip to content

Instantly share code, notes, and snippets.

View test.csv
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 2.
Composer,adopt,dinges,TRUE,"Although the idea of dependency management ..."
Canary builds,trial,techniques,FALSE,"Many projects have external code dependencies ..."
Apache Kylin,assess,platforms,TRUE,"Apache Kylin is an open source analytics solution ..."
JSF,hold,languages & frameworks,FALSE,"We continue to see teams run into trouble using JSF ..."
stefanvangastel /
Last active May 7, 2020 20:35
Download Conda repo's for offline use (including .conda files). First edit links.txt, then run and finish and end with
for link in `cat links.txt`; do
wget -r -l1 -H -t1 -N -np -nH -P "pkgs/" --cut-dirs=1 -e robots=off -R "index.html*" $link
# -r recursive
# -l1 maximum recursion depth (1=use only this directory)
# -H span hosts (visit other hosts in the recursion)
# -t1 Number of retries
# -N turn on timestamping
stefanvangastel /
Created February 5, 2018 19:39
Download latest release of as war file
json=`curl -s -X GET`
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w 'name'`
version="$(echo $temp | cut -d\ -f3)"
curl -o "drawio-$version.war" -L$version/draw.war
stefanvangastel / bootstrap.php
Last active March 19, 2017 09:30
CakePHP 3 + Syslog + Logstash + Elasticsearch, these gists are source for a blogpost regarding the out of the box syslog engine for CakePHP 3 and using logstash to push them to elasticsearch
View bootstrap.php
# Change default log engine at the end of bootstrap.php
# See
Log::config('default', [
'engine' => 'Syslog',
'facility' => LOG_LOCAL7, // Use local7 as dedicated syslog facilty for this app (
'prefix' => 'MY_APP'
stefanvangastel /
Last active March 9, 2023 23:19
Bash scripts to pull, (optional) retag, save, load and push Docker images. Created to provide easy means to download an image, retag it to use a private registry and then save it to an external disk. In a offline or on-premise environment you can use the load and push script to load images and push them to a private registry.
#### Functions ###
display_usage() {
echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!"
echo -e "\nUsage:\n$0 <saved_image> [--push]\n"
echo -e " <saved_image>\t\t\tThe image file to load and push"
echo -e " [--push]\t\t\tPush to registry"
echo -e "\nExample: $0 /mydir/ubuntu.tar --push "
View docker-compose.yml
VAMP_URL: http://vamp:8080
VAMP_KEY_VALUE_STORE_ROOT_PATH: /vamp/workflow/health
breed: health
workflow: health
image: magneticio/vamp-workflow-agent:0.9.0
stefanvangastel / default.ctp
Last active October 10, 2017 15:11 — forked from ichord/gist:9808444
demo of using pdf.js to extract pages to images in CakePHP (
View default.ctp
//Your layout file
//Bla bla
stefanvangastel / firebaseAngularJsExample.html
Created September 16, 2015 15:39
One file Firebase AngularJS Angularfire example
View firebaseAngularJsExample.html
<!DOCTYPE html>
<html ng-app="app">
<title>Firebase AngularJS Demo</title>
<!-- AngularJS -->
<script src=""></script>
<!-- Firebase -->
<script src=""></script>
stefanvangastel / porche.jpg
Created June 1, 2015 15:01
Base64 encoded OpenALPR example image
View porche.jpg
stefanvangastel / appDirectives.js
Created March 17, 2015 09:50
CakePHP 3 form validation message by AngularJS directive
View appDirectives.js
var appDirectives = angular.module('appDirectives', []);
* Add potential validation fields to form-control form elements (CakePHP 3 with Bootstrap)
* Requirement: $scope.errors contains option (validation) errors in default CakePHP 3 JSON response
appDirectives.directive('formControl', function($compile) {
return {
restrict: 'C', //Match all elements with form-control class