Skip to content

Instantly share code, notes, and snippets.

View astoj's full-sized avatar

Alex Stojcic astoj

View GitHub Profile
@minniel
minniel / slack_history.py
Last active February 28, 2022 22:02 — forked from Chandler/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
from slacker import Slacker
import json
import argparse
import os
import shutil
import copy
from datetime import datetime
# This script finds all channels, private channels and direct messages
# that your user participates in, downloads the complete history for
@danb
danb / security-group-cleanup.py
Last active April 19, 2016 17:55 — forked from miketheman/security-group-cleanup.py
Added region support and checks against ENIs, RDS, and ELBs. Cleaned output.
#!/usr/bin/env python
import sys
import boto
import boto.ec2
import boto.ec2.elb
import boto.rds
import pprint
import argparse
@miketheman
miketheman / security-group-cleanup.py
Created May 7, 2012 21:07
AWS EC2 Unused Security Group cleanup
#!/usr/bin/env python
import sys
import boto
import pprint
del_flag = ''
if len(sys.argv) > 1:
del_flag = sys.argv[1]