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
$pd_headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$pd_headers.Add("Authorization", 'Token token=<rest_api_token>') | |
$pd_url = "https://<subdomain>.pagerduty.com/api/v1" | |
$requester_id = "<requester_id>" | |
$incident_id = "<incident_id>" | |
$duration = "900" //in seconds | |
$data = @{ | |
requester_id="$requester_id" |
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
#Export a list of all users to a CSV file. | |
#This script is not supported by PagerDuty. | |
#!/usr/bin/env python | |
import datetime | |
import requests | |
import sys | |
import csv |
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
:loop | |
@echo off | |
date /t >> test_mx.log | |
time /t >> test_mx.log | |
nslookup -type=MX foo.pagerduty.com >> test_mx.log | |
time /t >> test_mx.log | |
nslookup -type=MX foo.pagerduty.com 8.8.8.8 >> test_mx.log | |
time /t >> test_mx.log | |
nslookup -type=MX -d2 foo.pagerduty.com >> test_mx.log | |
time /t >> test_mx.log |
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 | |
while true; do | |
dig foo.pagerduty.com mx >> ./test_mx.log | |
dig @8.8.8.8 foo.pagerduty.com mx >> ./test_mx.log | |
dig foo.pagerduty.com mx +trace >> ./test_mx.log | |
sleep 5 | |
done |
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/python | |
import requests | |
import sys | |
import json | |
from datetime import date | |
import pprint | |
#Your PagerDuty API key. A read-only key will work for this. | |
auth_token = 'API_KEY_HERE' |
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
import SwiftUI | |
import Instabug | |
@main | |
struct Test_6App: App { | |
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate | |
var body: some Scene { | |
WindowGroup { | |
ContentView() | |
} |
OlderNewer