Skip to content

Instantly share code, notes, and snippets.

@pnancarrow
pnancarrow / get_users.py
Created November 5, 2019 15:33 — forked from ryanhoskin/get_users.py
Export a list of your PagerDuty users to a CSV file
#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
@pnancarrow
pnancarrow / aws_security_group_details.sh
Last active August 21, 2021 20:29 — forked from richadams/aws_security_group_details.sh
A quick and dirty script to list out all security group settings on an AWS account. Barely tested, use at own risk, etc. Requires awscli to be installed.
#!/bin/bash
# Requires: awscli (http://aws.amazon.com/cli/)
# Prints out a list of all security groups and their settings, just for quickly auditing it.
# Your AWS credentials
#if [ -z ${AWS_ACCESS_KEY_ID} ]; then
# export AWS_ACCESS_KEY_ID='***'
# export AWS_SECRET_ACCESS_KEY='***'
#fi