Skip to content

Instantly share code, notes, and snippets.

@freemed
freemed / gist:1038132
Created June 21, 2011 15:40
gmond+gmetric force spoof patch
Index: monitor-core/lib/libgmond.c
===================================================================
--- monitor-core/lib/libgmond.c (revision 2616)
+++ monitor-core/lib/libgmond.c (working copy)
@@ -66,6 +66,8 @@
CFG_BOOL("gexec", 0, CFGF_NONE),
CFG_INT("send_metadata_interval", 0, CFGF_NONE),
CFG_STR("module_dir", NULL, CFGF_NONE),
+ CFG_STR("override_hostname", NULL, CFGF_NONE),
+ CFG_STR("override_ip", NULL, CFGF_NONE),
@creaktive
creaktive / cpux86.js
Created May 18, 2011 13:07
Javascript PC Emulator by Fabrice Bellard
/*
PC Emulator
Copyright (c) 2011 Fabrice Bellard
Redistribution or commercial use is prohibited without the author's
permission.
*/
"use strict";
var aa;