Skip to content

Instantly share code, notes, and snippets.


Anthony Kamau ak2766

View GitHub Profile
ak2766 / haproxy.cfg
Created Jul 28, 2020 — forked from daemonza/haproxy.cfg
HAproxy virtual site load balancing
View haproxy.cfg
# This configuration use acl's to distinguish between url's passwd and then route
# them to the right backend servers. For the backend servers to handle it correctly, you
# need to setup virtual hosting there as well, on whatever you use, tomcat, nginx, apache, etc.
# For this to work with SSL, put pound before HAproxy and use a configuration file similar to
# to get it working
log local0
log local1 info
maxconn 4096
View timeInISO8601Format
void main() {
String getTimeInISO8601() {
var ct =;
String year = ct.year.toString().padLeft(4,'0');
String month = ct.month.toString().padLeft(2,'0');
String day =,'0');
String hour = ct.hour.toString().padLeft(2,'0');
View signtool.msbuild.tasks
Sign .exe files using signtool.exe.
(c) 2014 Greg MacLellan, Licensed under MIT
* Hides password from being displayed in build output
* Retries against multiple timestamp servers if the server returns an invalid response (fairly common)