Skip to content

Instantly share code, notes, and snippets.

View amattheisen's full-sized avatar

Andrew Mattheisen amattheisen

View GitHub Profile
[
{
"target": [
"color(alias(sumSeries(carbon.agents.GLaDOS-graphite-a.cache.size, carbon.agents.GLaDOS-graphite-b.cache.size, carbon.agents.GLaDOS-graphite-c.cache.size, carbon.agents.GLaDOS-graphite-d.cache.size, carbon.agents.GLaDOS-graphite-backfill.cache.size),\"Total cache size\"),\"692747F\")",
"color(alias(sumSeries(carbon.agents.GLaDOS-graphite-a.committedPoints, carbon.agents.GLaDOS-graphite-b.committedPoints, carbon.agents.GLaDOS-graphite-c.committedPoints, carbon.agents.GLaDOS-graphite-d.committedPoints, carbon.agents.GLaDOS-graphite-backfill.committedPoints),\"Total committed points\"),\"A64E5F\")",
"color(alias(dashed(sumSeries(carbon.agents.GLaDOS-graphite-backfill.metricsReceived, carbon.relays.GLaDOS-graphite-a.metricsReceived), 5),\"Dashed Total metrics received\"),\"FFCBA6\")"
],
"fgcolor": "FFCBA6",
"title": "Graphite Health",
"minorGridLineColor": "692747F",
How to highlighting misspellings/rare-words/capitalization-errors in VIM
Enable/Disable
:set spell spelllang=en_us
:set nospell
Commands:
]s Move to next misspelled word
[s Move to previous misspelled word
z= Suggest spelling correction
@amattheisen
amattheisen / chi2 populator change
Created January 25, 2017 17:00
rolling back this change so I can pull origin master
diff --git a/docker/graphite/populators/chi2.py b/docker/graphite/populators/chi2.py
index a759302..7bf0e4e 100755
--- a/docker/graphite/populators/chi2.py
+++ b/docker/graphite/populators/chi2.py
@@ -43,8 +43,8 @@ def main(args):
rrd_string = '{system}.chi2.{band}.{igp} {value} {waas_seconds}'.format(**chi2)
if args['--debug']:
print(rrd_string)
- else:
- rrd.write(rrd_string)
@amattheisen
amattheisen / gist:b476f13bfa341b8218a4aab8057abf9b
Created November 7, 2016 15:10
reload changed module in ipython
I develop using vim and an ipython shell.
To test module changes to module foo, I type the following in the python shell:
import sys
reload(sys.modules['foo'])
import foo