Skip to content

Instantly share code, notes, and snippets.

View conoremclaughlin's full-sized avatar

Conor conoremclaughlin

View GitHub Profile
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@conoremclaughlin
conoremclaughlin / Resources.md
Last active September 2, 2015 14:43 — forked from yannickcr/Resources.md
React.js Conf 2015 - From the Internet
@conoremclaughlin
conoremclaughlin / README.md
Last active September 4, 2015 13:21 — forked from benjie/README.md
Long Live CoffeeScript and Long Live ES6

Long Live CoffeeScript and Long Live ES6

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

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:

@conoremclaughlin
conoremclaughlin / cadvisor.conf
Created September 20, 2017 04:52
cAdvisor conf for Upstart
description "cadvisor from google"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
#nice
#chroot /
chdir /
#limit core <softlimit> <hardlimit>
@conoremclaughlin
conoremclaughlin / node-exporter.conf
Created September 20, 2017 15:37
Node exporter config for Upstart
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>
@conoremclaughlin
conoremclaughlin / install-monitoring.sh
Last active November 10, 2021 09:27
Ubuntu 14.04 & 16.04 - Install Node Exporter and cAdvisor
#!/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" \