Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rrx on github.
  • I am rrxx (https://keybase.io/rrxx) on keybase.
  • I have a public key ASBxeHck580zt9V7t03ffC9-91U1_UHOcJ1n8uQFK2vTawo

To claim this, I am signing this object:

@rrx
rrx / delete_from_slack.py
Created October 24, 2017 03:16
Delete all files from slack
import slacker
from slacker import Slacker
import os
slack = Slacker(os.environ['terraform_slack_token'])
page = 1
while True:
response = slack.files.list(page=page)
pages = response.body['paging']['pages']
import ebaysdk
from ebaysdk.utils import getNodeText
from ebaysdk.exception import ConnectionError
from ebaysdk.trading import Connection as Trading
import simplejson as json
import datetime
import sys
if __name__ == '__main__':
DEBUG=False
@rrx
rrx / gencert.sh
Last active December 21, 2015 00:09 — forked from bradland/gencert.sh
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27