Skip to content

Instantly share code, notes, and snippets.

View TBeijen's full-sized avatar
🎧

Tibo Beijen TBeijen

🎧
View GitHub Profile
@TBeijen
TBeijen / shared_pipeline.groovy
Created May 30, 2018 05:49
Jenkinsfile & shared pipeline constructs
// /src/org/foo/utils.groovy
package org.foo
class Utils {
static def doStuff() {
return "done"
}
}
// /vars/example.groovy
@TBeijen
TBeijen / algorithms.md
Last active April 17, 2017 11:50
Algorithms
@TBeijen
TBeijen / simple_server.py
Last active August 25, 2016 11:50
Pyton Simple Server (Varnish/Haproxy debugging)
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
#
# Changes (TBeijen):
# - Removed cookie setting
# - added send_headers()
# - added cache control
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler