Skip to content

Instantly share code, notes, and snippets.

@glensc
glensc / message_json_parser.py
Last active June 27, 2021 12:18 — forked from multun/message_json_parser.py
Pretty-print a facebook message.json, fixing up broken encoding
#!/usr/bin/env python3
import sys
import json
import warnings
from datetime import datetime
def fixup_str(text):
return text.encode('latin1').decode('utf8')
@glensc
glensc / slack-svn-hook.py
Last active January 31, 2017 14:35
Subversion integration with Slack
#!/usr/bin/python
# Script for Subversion integration with Slack
#
# Uses slackweb module:
# https://github.com/satoshi03/slack-python-webhook
# 1. Save this file in /usr/bin as slack-svn-hook
# 2. Make it executable:
# chmod +x /usr/bin/slack-svn-hook
# 3. Put this line at the end of file of your_svn_repo/hooks/post-commit:
@glensc
glensc / .gitignore
Last active December 11, 2015 07:28 — forked from petterl/create_repo.sh
eventum bzr to git migrate
eventum.bzr
Mon Mar 22 15:25:10 EET 2010