Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony Kamau ak2766

View GitHub Profile
@ak2766
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
# https://gist.github.com/1984822 to get it working
global
log 127.0.0.1 local0
log 127.0.0.1 local1 info
maxconn 4096
View timeInISO8601Format
void main() {
print(getTimeInISO8601());
}
String getTimeInISO8601() {
var ct = DateTime.now().toUtc();
String year = ct.year.toString().padLeft(4,'0');
String month = ct.month.toString().padLeft(2,'0');
String day = ct.day.toString().padLeft(2,'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 http://opensource.org/licenses/MIT
Features:
* Hides password from being displayed in build output
* Retries against multiple timestamp servers if the server returns an invalid response (fairly common)
Usage:
You can’t perform that action at this time.