Skip to content

Instantly share code, notes, and snippets.

View ehoppmann's full-sized avatar

Emma Hoppmann ehoppmann

View GitHub Profile
@ehoppmann
ehoppmann / slack_history.py
Created August 22, 2017 18:19 — forked from Chandler/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@ehoppmann
ehoppmann / pound_https_domains.sh
Created March 19, 2017 18:07
Extract all ssl https hosts from pound proxy config file in preparation for running letsencrypt
#!/bin/bash
grep -A10000000 ListenHTTPS /etc/pound/pound.cfg \
| sed -n "s/^.*HeadRequire\s*\"Host\:\.\*\(.*\)\.\*.*$/\1/p" \
> domains.txt
@ehoppmann
ehoppmann / convertWeightRecorderXMLtoCSV.py
Last active September 19, 2016 15:16
Convert iOS Weight Recorder / WeightRecord XML file into CSV
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import dateparser
import csv
soup = BeautifulSoup(open('WeightRecorder - 2016-09-18.xml'), "lxml")
def kgtolbs(kg):
return float(kg) * 2.20462262185