Skip to content

Instantly share code, notes, and snippets.

View jessegonzalez's full-sized avatar

Jesse Gonzalez jessegonzalez

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jessegonzalez on github.
  • I am sifusam (https://keybase.io/sifusam) on keybase.
  • I have a public key ASBjJFk65NDAuy6JZx2a5z3vBlPGpRkRCpW_CixovFGNMAo

To claim this, I am signing this object:

@jessegonzalez
jessegonzalez / gist:1904734
Created February 25, 2012 00:00
jolokia proxy mode help
curl -X POST -d '{"type":"list","target":{ "url":"service:jmx:rmi:///jndi/rmi://remotehost:1099/jmxrmi","user":"user","password":"pass"},"config":{"maxDepth":1}}' localhost:7777/jolokia/
@jessegonzalez
jessegonzalez / ValueError
Created February 3, 2012 01:32
request issue with unicode?
$ python test.py
200
Traceback (most recent call last):
File "test.py", line 15, in <module>
func("http://www.google.com", my_unicode_dict)
File "test.py", line 7, in func
resp = get(endpoint, headers=dictionary)
File "/Users/jesse.gonzalez/Envs/authmonitor/lib/python2.7/site-packages/requests/api.py", line 51, in get
return request('get', url, **kwargs)
File "/Users/jesse.gonzalez/Envs/authmonitor/lib/python2.7/site-packages/requests/api.py", line 39, in request