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
#!/bin/bash | |
CONTENT_TYPE="application/json" | |
DESCRIPTION="bad things™ are happening" | |
URL="https://events.pagerduty.com/generic/2010-04-15/create_event.json" | |
if [ $# -ne 3 ]; then | |
echo "Usage: pd-event.sh [TYPE] [SERVICE KEY] [INCIDENT KEY]" | |
echo " - TYPE: [t]rigger | [a]cknowledge | [r]esolve" | |
echo " - SERVICE KEY: unique identifier for service" |
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
#!/bin/sh | |
## | |
# Set the variables below and then execute as follows: | |
# | |
# e.g. Search log files for [email protected] string. | |
# $ search-logs "[email protected]" | |
# | |
# e.g. Search log files for [email protected] and display surrounding 3 lines in addition to the matched line. | |
# $ search-logs "[email protected]" "-A 3 -B 3" |
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
# handy ruby script which allows developers to get oauth token/secret | |
# for a twitter application identified by consumer_key and consumer_secret. | |
require 'oauth' | |
print "consumer_key: " | |
consumer_key = STDIN.gets.strip | |
print "consumer_secret: " | |
consumer_secret = STDIN.gets.strip |