Skip to content

Instantly share code, notes, and snippets.

import _interpreters as interpreters
# This will be hopefully replaced soon with 'pip install interpreters_pep_734' and 'from interpreters import queues'
# once https://github.com/ericsnowcurrently/interpreters/pull/15 is merged
from test.support.interpreters import queues
import time
import threading
[ -f ~/.tp_command ] && source ~/.tp_command
alias c=tp
alias 'install-teleport'='cd; curl https://raw.githubusercontent.com/alvinj/Teleport/master/tp_command > .tp_command; touch .tp_history .tp_aliases'

Keybase proof

I hereby claim:

  • I am ze-phyr-us on github.
  • I am vita (https://keybase.io/vita) on keybase.
  • I have a public key whose fingerprint is 473E E429 4392 5A17 B9E0 D942 85C8 E61C 524B 35C1

To claim this, I am signing this object:

@vitawasalreadytaken
vitawasalreadytaken / gist:486b0c03dc38f327bef0
Last active August 29, 2015 14:02
Check that the Quickfix Python module is able to find the dynamically linked libraries it requires, and suggest how to fix incorrect paths.
import logging, os, subprocess
def checkQuickfixDylibs(soPath):
'''
Verify that _quickfix.so's required dylibs exist, and suggest how to fix incorrect paths.
It is assumed that missing libs (most likely just libquickfix.14.dylib) should be present
in the same directory as _quickfix.so.
:param soPath: path/to/_quickfix.so (or path/to/libquickfix_python.10.dylib).
'''
@vitawasalreadytaken
vitawasalreadytaken / application.py
Last active October 25, 2019 16:20
Skeleton of a real Quickfix application
import logging
import quickfix as fix
def _str(msg):
''' Convert a FIX message to a readable string. '''
return msg.toString().replace('\x01', '@')