Skip to content

Instantly share code, notes, and snippets.

View aliceinwire's full-sized avatar

Arisu T. aliceinwire

View GitHub Profile
@aliceinwire
aliceinwire / zabbix-2.0.3-dnsapi.patch
Created November 21, 2012 09:26
zabbix-2.0.3-dnsapi.patch
--- zabbix-2.0.3.orig/src/libs/zbxsysinfo/common/net.c 2012-11-05 07:04:04.450140996 +0900
+++ zabbix-2.0.3/src/libs/zbxsysinfo/common/net.c 2012-11-16 13:19:28.057641634 +0900
@@ -215,6 +215,8 @@ static int dns_query(const char *cmd, co
PDNS_RECORD pQueryResults, pDnsRecord;
LPTSTR wzone;
char tmp2[MAX_STRING_LEN];
+ static HMODULE dnsapi_dllHandle = NULL;
+ static void (WINAPI *DnsRecordListFree_dyn)(PDNS_RECORD, DNS_FREE_TYPE) = NULL;
#else
char *name;
@aliceinwire
aliceinwire / mosh-cygwin
Created June 5, 2012 22:25 — forked from eerohele/mosh-cygwin.md
Compiling Mosh from git (http://mosh.mit.edu/) under Cygwin
1. Download Cygwin: http://www.cygwin.com
2. Run setup.exe and install the following packages in addition to the default ones:
- make
- boost
- libncurses-devel
- pkg-config
- perl
3. Download and compile Protocol Buffers: http://code.google.com/p/protobuf/