Skip to content

Instantly share code, notes, and snippets.

@JeffAMcGee
JeffAMcGee / odbc_trace_2
Last active July 7, 2016 23:40
pyodbc and vertica on python 3
[ODBC][91148][1467818382.779294][__handles.c][460]
Exit:[SQL_SUCCESS]
Environment = 0x7fadd1838000
[ODBC][91148][1467818382.779403][SQLSetEnvAttr.c][189]
Entry:
Environment = 0x7fadd1838000
Attribute = SQL_ATTR_ODBC_VERSION
Value = 0x3
StrLen = 4
[ODBC][91148][1467818382.779496][SQLSetEnvAttr.c][364]

Keybase proof

I hereby claim:

  • I am jeffamcgee on github.
  • I am jeffamcgee (https://keybase.io/jeffamcgee) on keybase.
  • I have a public key whose fingerprint is 2581 7A8A B1F4 472A 2D1F D30D 986F C46C A409 9D24

To claim this, I am signing this object:

@JeffAMcGee
JeffAMcGee / gist:7587744
Created November 21, 2013 19:14
crash of phantomjs
2013-11-21 11:10:06: minidump_processor.cc:264: INFO: Processing minidump in file 9FE34114-ECA4-4FD7-89AF-9CE3D974478C.dmp
2013-11-21 11:10:06: minidump.cc:3775: INFO: Minidump opened minidump 9FE34114-ECA4-4FD7-89AF-9CE3D974478C.dmp
2013-11-21 11:10:06: minidump.cc:3820: INFO: Minidump not byte-swapping minidump
2013-11-21 11:10:06: minidump.cc:4186: INFO: GetStream: type 1197932546 not present
2013-11-21 11:10:06: minidump.cc:1958: INFO: MinidumpModule could not determine version for /Users/jeff/repos/prerender/node_modules/phantomjs/lib/phantom/bin/phantomjs
2013-11-21 11:10:06: minidump.cc:1958: INFO: MinidumpModule could not determine version for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
2013-11-21 11:10:06: minidump.cc:1958: INFO: MinidumpModule could not determine version for /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
2013-11-21 11:10:06: minidump.cc:1958: INFO: MinidumpModule could not determine version for /System/Librar
import json
import time
import logging
from datetime import datetime
import httplib
from oauth_hook import OAuthHook
import requests
import requests.models
@JeffAMcGee
JeffAMcGee / tarhw.py
Created September 6, 2012 23:25
tool to create tar.gz files
#!/usr/bin/env python
import tarfile
import sys
"""
Script to replace tar -czf for turning in CSCE 470 assignments.
Author: Jeffrey McGee, based on an idea by John Keech
Usage: python tarhw.py hw2
"""
@JeffAMcGee
JeffAMcGee / gist:668068
Created November 8, 2010 18:48
body_string timeout pdb
(Pdb) bt
/Users/jeff/localcrawl/twitter.py(57)get_d()
-> return json.loads(r.body_string())
> /Users/jeff/localcrawl/build/bdist.macosx-10.6-universal/egg/restkit/client/response.py(46)body_string()
/Users/jeff/localcrawl/build/bdist.macosx-10.6-universal/egg/restkit/http/body.py(238)read()
/Users/jeff/localcrawl/build/bdist.macosx-10.6-universal/egg/restkit/http/body.py(136)read()
/Users/jeff/localcrawl/build/bdist.macosx-10.6-universal/egg/restkit/http/unreader.py(40)read()
/Users/jeff/localcrawl/build/bdist.macosx-10.6-universal/egg/restkit/http/unreader.py(72)chunk()
/Users/jeff/localcrawl/twitter.py(16)int_handler()
-> pdb.set_trace(frame)