Skip to content

Instantly share code, notes, and snippets.

View iKlotho's full-sized avatar
🏠
Working from home

Umut Kahriman iKlotho

🏠
Working from home
  • İstanbul, Turkey
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@iKlotho
iKlotho / consume_MT_messages_multipart.py
Last active November 28, 2022 12:05 — forked from pguillem/consume_MT_messages.py
Jasmin Consume MT messages Multipart Message
# -*- coding: utf-8 -*-
"""
Original file is the https://gist.github.com/pguillem/5750e8db352f001138f2
This version of the script uses psycopg2 instead of PySQLPool and handles multipart messages
"""
import sys
import pickle
from twisted.internet.defer import inlineCallbacks