Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am achamo on github.
  • I am shine (https://keybase.io/shine) on keybase.
  • I have a public key whose fingerprint is 84A2 12A7 C212 9D73 1FBA 037D 0ECE C2B9 77CB F56E

To claim this, I am signing this object:

@achamo
achamo / nagios.coffee
Last active December 24, 2015 21:58 — forked from benwtr/nagios.coffee
# Description:
# This script receives pages in the formats
# /usr/bin/curl -d host="$HOSTALIAS$" -d output="$SERVICEOUTPUT$" -d description="$SERVICEDESC$" -d type=service -d notificationtype="$NOTIFICATIONTYPE$ -d state="$SERVICESTATE$" $CONTACTADDRESS1$
# /usr/bin/curl -d host="$HOSTNAME$" -d output="$HOSTOUTPUT$" -d type=host -d notificationtype="$NOTIFICATIONTYPE$" -d state="$HOSTSTATE$" $CONTACTADDRESS1$
#
# Based on a gist by oremj (https://gist.github.com/oremj/3702073)
#
# Configuration:
# HUBOT_NAGIOS_URL - https://<user>:<password>@nagios.example.com/cgi-bin/nagios3
#
@achamo
achamo / asterisk-unimrcp.patch
Created March 20, 2012 17:47
Asterisk 10 & asterisk-unimrcp
Index: res-speech-unimrcp/res_speech_unimrcp.c
===================================================================
--- res-speech-unimrcp/res_speech_unimrcp.c (revision 1843)
+++ res-speech-unimrcp/res_speech_unimrcp.c (working copy)
@@ -1323,7 +1323,7 @@
/* Create singleton logger */
apt_log_instance_create(uni_engine.log_output, uni_engine.log_level, pool);
/* Open the log file */
- apt_log_file_open(dir_layout->log_dir_path,"astuni",MAX_LOG_FILE_SIZE,MAX_LOG_FILE_COUNT,TRUE,pool);
+ apt_log_file_open(dir_layout->log_dir_path,"astuni",MAX_LOG_FILE_SIZE,MAX_LOG_FILE_COUNT,pool);