Skip to content

Instantly share code, notes, and snippets.

View kaymccormick's full-sized avatar
🎯
Focusing

Kay McCormick kaymccormick

🎯
Focusing
View GitHub Profile
================================= test session starts =================================
platform linux -- Python 3.7.0, pytest-3.7.3, py-1.6.0, pluggy-0.7.1
rootdir: /home/user/j/jade/newsrc/pyramid_res, inifile:
collected 0 items / 1 errors
======================================= ERRORS ========================================
___________________ ERROR collecting tests/test_resourceManager.py ____________________
ImportError while importing test module '/home/user/j/jade/newsrc/pyramid_res/tests/test_resourceManager.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
@kaymccormick
kaymccormick / README
Last active August 3, 2018 20:27 — forked from leandrosilva/README
Parsing Syslog files with Python and PyParsing
$ python xlogd.py sample.log
parsed: {'appname': 'test.app', 'timestamp': '2012-09-06 15:19:32', 'hostname': 'codezone.local', 'pid': '68898', 'priority': '132', 'message': 'bla bla bla warn'}
parsed: {'appname': 'test.app', 'timestamp': '2012-09-06 15:19:32', 'hostname': 'codezone.local', 'pid': '68902', 'priority': '131', 'message': 'bla bla bla error'}
parsed: {'appname': 'Dock', 'timestamp': '2012-09-06 15:19:32', 'hostname': 'codezone.local', 'pid': '154', 'priority': '11', 'message': 'CGSReleaseWindowList: called with 5 invalid window(s)'}
parsed: {'appname': 'WindowServer', 'timestamp': '2012-09-06 15:19:32', 'hostname': 'codezone.local', 'pid': '79', 'priority': '11', 'message': 'CGXSetWindowListAlpha: Invalid window 0'}