I hereby claim:
- I am Deconstrained on github.
- I am demitrimorgan (https://keybase.io/demitrimorgan) on keybase.
- I have a public key whose fingerprint is 97C5 BA40 5FD4 6152 BBD9 DDB5 1D47 ABDB B221 16AE
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
import urllib.parse as url | |
import xml.etree.ElementTree as ET | |
def main(): | |
ap = argparse.ArgumentParser(description="Convert an M3U file to a Brasero " |
#!/usr/bin/env python | |
""" | |
Sample code for a theoretical Splunk plugin to record an observed value as a | |
PagerDuty Impact Metric, and only during incidents triggered via Splunk | |
Requires pdpyras: | |
https://pagerduty.github.io/pdpyras/ | |
""" |
#!/bin/bash | |
# PagerDuty Agent | |
COMMAND="/usr/bin/env - /usr/share/pdagent-integrations/bin/pd-nagios" | |
if [ "$NOTIFY_WHAT" = "SERVICE" ]; then | |
$COMMAND -n service -k $NOTIFY_PARAMETER_1 -t $NOTIFY_NOTIFICATIONTYPE -f SERVICEDESC="$NOTIFY_SERVICEDESC" -f SERVICESTATE="$NOTIFY_SERVICESTATE" -f HOSTNAME="$NOTIFY_HOSTNAME" | |
elif [ "$NOTIFY_WHAT" = "HOST" ]; then | |
$COMMAND -n host -k $NOTIFY_PARAMETER_1 -t $NOTIFY_NOTIFICATIONTYPE -f HOSTNAME="$NOTIFY_HOSTNAME" -f HOSTSTATE="$NOTIFY_HOSTSTATE" | |
fi |
#!/usr/bin/env python | |
import argparse | |
import logging | |
import os | |
import requests | |
import subprocess | |
import sys | |
from boto.ec2 import get_region |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
""" | |
@author Demitri Morgan <demitri.morgan@gmail.com> | |
Takes the ugly, poorly-formatted text output from Clipper's web portal... | |
https://www.clippercard.com/ClipperCard/dashboard.jsf | |
...and prints it to stdout in three columns: time, credit and debit. |
#!/usr/bin/env python | |
# | |
# Copyright (c) 2017, PagerDuty, Inc. <info@pagerduty.com> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
#!/usr/bin/env python | |
# | |
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright | |
# notice, this list of conditions and the following disclaimer in the |
' Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com> | |
' All rights reserved. | |
' | |
' Redistribution and use in source and binary forms, with or without | |
' modification, are permitted provided that the following conditions are met: | |
' * Redistributions of source code must retain the above copyright | |
' notice, this list of conditions and the following disclaimer. | |
' * Redistributions in binary form must reproduce the above copyright | |
' notice, this list of conditions and the following disclaimer in the | |
' documentation and/or other materials provided with the distribution. |
#!/usr/bin/env python | |
# Prints a list of PagerDuty incidents created on a given PagerDuty service over | |
# the past 24 hours. | |
import argparse | |
import time | |
try: | |
import pypd |