This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
Clearly ES6 is a huge improvement over ES5, and tools like [6to5][] allow us to use these cool features now. I was reading [Replace CoffeeScript with ES6][replace coffeescript] by [Blake Williams][] and thought it was a great summary of how ES6 solves many of the same problems that CoffeeScript solves; however I'd like to comment on a few of Blake's points and talk about why I'll be sticking with CoffeeScript.
Classes in ES6 (like many of the syntax changes in ES6) are very similar to the CoffeeScript equivalent. To support browsers that are not fully ES5 compliant (e.g. IE8-), however, we still can't really use getters/setters, so ignoring these the comparison is:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "cadvisor from google" | |
| start on filesystem or runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| umask 022 | |
| #nice | |
| #chroot / | |
| chdir / | |
| #limit core <softlimit> <hardlimit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "node-exporter from prometheus/soundcloud" | |
| start on filesystem or runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| umask 022 | |
| #nice | |
| #chroot / | |
| chdir / | |
| #limit core <softlimit> <hardlimit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # BUG: running node exporter or cadvisor as docker containers can lock up | |
| # other docker containers from being stopped or restarted depending on the version. Install directly on the VM | |
| # docker run -d -p 9100:9100 \ | |
| # -v "/proc:/host/proc:ro" \ | |
| # -v "/sys:/host/sys:ro" \ | |
| # -v "/:/rootfs:ro" \ | |
| # --net="host" \ | |
| # -name "node-exporter" \ |