OS X: Using scutils to discover whether/what a web proxy is in use

When looking for ways to discover whether a proxy is being used by OS X, you will be typically pointed to networksetup -getwebproxy However that does not always work – for example when using “Auto Proxy Discovery” and/or “Automatic Proxy Configuration” with a proxy.pac file. scutils –proxy seems to detect all these cases (though itContinue reading “OS X: Using scutils to discover whether/what a web proxy is in use”

All-in-one Docker with Grafana, InfluxDB, and cloudwatch-to-graphite for AWS/Beanstalk monitoring

I have derived the Docker container docker-grafana-influxdb-cloudwatch that bundles Grafana dashboards, InfluxDB for metrics storage, and runs cloudwatch-to-graphite as a cron job to fetch selected metrics from AWS CloudWatch and feed them into the InfluxDB using its Graphite input plugin. It is configured so that you can run it in AWS Elastic Beanstalk (the main problem being thatContinue reading “All-in-one Docker with Grafana, InfluxDB, and cloudwatch-to-graphite for AWS/Beanstalk monitoring”

Hack: Quickly Verify That All Your Mocha/Chai Tests Have Valid Assertions

Chai is a popular Node/browser assertion library. However – as everything – it has its flaws. An important flaw is that it performs checks on property access – and if you e.g. misspell the name of an assertion, it will be just ignored (for there is no way for Chai to know that you tried to accessContinue reading “Hack: Quickly Verify That All Your Mocha/Chai Tests Have Valid Assertions”