This file contains 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
# god upstart service | |
description "God process monitoring" | |
# When to start and stop the service | |
start on runlevel [2345] | |
stop on runlevel [016] | |
# Automatically restart process if crashed | |
kill timeout 20 | |
respawn |
This file contains 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
import com.sun.org.apache.xml.internal.security.utils.Base64 | |
import javax.crypto._ | |
import javax.crypto.spec._ | |
import java.security.spec._ | |
import java.io._ | |
import java.security.{NoSuchAlgorithmException, InvalidAlgorithmParameterException} | |
import javax.management.openmbean.InvalidKeyException | |
import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException | |
import play.api.Logger |
This file contains 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
# Apache Basic Authentication for A Rewrite Condition not a Directory | |
# | |
# NOTE: Locations work off of URLs not directories | |
# | |
# Put this in your virtualhost block | |
# | |
<Location /YOUR_URL_PATH/> | |
AuthType Basic | |
AuthName "Authorization Required." | |
AuthUserFile /etc/httpd/conf/htpasswd |
This file contains 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
#!/bin/bash -ex | |
# | |
# Description: Graph how old the last sync was between primary and secondary mongo instances. | |
# | |
# Base code and idea thanks to: Edward M. Goldberg | |
# | |
# any mistakes courtesy of: Dennis Faust | |
# | |
if [ $RS_DISTRO = ubuntu ]; then | |
plugin_dir="/etc/collectd/conf" |
This file contains 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 | |
# Pingdom_http_custom_check | |
# DFF - 2011 | |
# put this in {Apache Files}/cgi-bin/ | |
# make sure to chmod +x the file | |
# Your ruby interpreter might not be where mine is. Check the above. | |
# | |
require 'cgi' | |
too_old=360 |
NewerOlder