This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/bin/perl | |
use warnings; | |
use strict; | |
# Copyright (c) 2013 Jon Nall, STUNTAZ!!! All rights reserved. | |
# | |
# This script is intended to be run on a Synology NAS. It attempts | |
# to determine the external IP where the NAS is connected and then | |
# checks to see if it needs to update a DNS record. The server is | |
# updated if any of these are true: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <[email protected]>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "mixlib/log/formatter" | |
module Mixlib | |
module Log | |
class Formatter < Logger::Formatter | |
# Prints a log message as '[time] severity: message' if Chef::Log::Formatter.show_time == true. | |
# Otherwise, doesn't print the time. | |
def call(severity, time, progname, msg) | |
if @@show_time | |
reset = "\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'hipchat-api' | |
require 'getopt/long' | |
require 'socket' | |
require 'erb' | |
#Do not modify these constants! (after you set these up, of course) | |
HipApiKey='ABCDEFGHKJHKJHKJHKJH' | |
Room='Nagios' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Zend/zend.h | |
=================================================================== | |
--- Zend/zend.h (revision 323850) | |
+++ Zend/zend.h (working copy) | |
@@ -486,6 +486,10 @@ | |
union _zend_function *__call; | |
union _zend_function *__callstatic; | |
union _zend_function *__tostring; | |
+ union _zend_function *__toint; | |
+ union _zend_function *__tofloat; |
NewerOlder