Skip to content

Instantly share code, notes, and snippets.

🕶️

Peter Giacomo Lombardo pglombardo

🕶️
View GitHub Profile
@pglombardo
pglombardo / x.txt
Created Mar 4, 2019
2017 MacBook Pro Crashing on Sleep
View x.txt
Anonymous UUID: 8DD42072-72D6-4761-9A18-9AC8503B209D
Mon Mar 4 11:08:04 2019
*** Panic Report ***
panic(cpu 0 caller 0xffffff7f9aeebcd9): "Failed to complete supporting devices sleep/wake\n"@/Library/Caches/com.apple.xbs/Sources/AppleEmbeddedOSSupport/AppleEmbeddedOSSupport-59.60.8/Source/Drivers/AppleEmbeddedOSSupportHost/AppleEmbeddedOSSupportHost.cpp:460
Backtrace (CPU 0), Frame : Return Address
0xffffff921808be50 : 0xffffff8017ee956c
0xffffff921808bed0 : 0xffffff7f9aeebcd9
0xffffff921808bf00 : 0xffffff8017f2202a
@pglombardo
pglombardo / myfalcon.py
Created Jul 24, 2018
Falcon app with Instana WSGI middleware
View myfalcon.py
import falcon
import instana
from instana.wsgi import iWSGIMiddleware
instana.service_name = "Falcon_Service"
# Falcon follows the REST architectural style, meaning (among
# other things) that you think in terms of resources and state
# transitions, which map to HTTP verbs.
@pglombardo
pglombardo / mycherry.py
Last active Feb 14, 2018
Adding Instana WSGI middleware to a CherryPy application
View mycherry.py
import cherrypy
import instana
from instana.wsgi import iWSGIMiddleware
# My CherryPy application
class Root(object):
@cherrypy.expose
def index(self):
return "hello world"
View tornado_app.py
#!/usr/bin/env python
import instana
import tornado.httpserver
import tornado.ioloop
import tornado.web
import opentracing
import opentracing.ext.tags as tags
import logging
instana.service_name = "Tornado 🌪"
View tornado_app.py
#!/usr/bin/env python
import datetime
from functools import wraps
import instana
import tornado.httpserver
import tornado.ioloop
import tornado.ioloop
import tornado.web
import tornado.web
@pglombardo
pglombardo / pwpush.rb
Last active Jul 26, 2017
PasswordPusher Alfred Workflow: Configurable days/views
View pwpush.rb
#!/usr/bin/env ruby
require "net/http"
require "uri"
require "json"
uri = URI.parse("https://pwpush.com/p.json")
data = {}
data["password[payload]"] = "{query}"
@pglombardo
pglombardo / bundle-env.md
Last active May 26, 2017
sys-proctable, bundler and always AIX platform; occurring on OSX + Ubuntu
View bundle-env.md

$ bundle env [17:52:15]

Environment

Bundler   1.15.0
Rubygems  2.6.12
Ruby      2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin15]
Git       2.13.0
Platform  x86_64-darwin-15
@pglombardo
pglombardo / Gemfile
Last active Nov 24, 2016
Instana Test Trace Generation Script
View Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem "instana"
@pglombardo
pglombardo / traceview.yml
Last active Jun 30, 2016
Proposed Ruby config file instrumentation syntax
View traceview.yml
Array#sort:
# Whether to start a new trace
#
# default: false
start_trace: false
# For potentially recursive operations, report only the
# outermost call
#
# default: false
@pglombardo
pglombardo / error.rb
Created Dec 9, 2015
TraceView gem + bson v4 gem error
View error.rb
NoMethodError: NoMethodError: undefined method `get_int32' for #<StringIO:0x007f9e20499498>
/home/pglombardo/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bson-4.0.0/lib/bson/hash.rb:77:in `from_bson'
/home/pglombardo/Projects/ruby-traceview/lib/oboe_metal.rb:83:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/minitest_helper.rb:94:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/instrumentation/delayed_job-client_test.rb:33:in `test_delay'
/home/pglombardo/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bson-4.0.0/lib/bson/hash.rb:77:in `from_bson'
/home/pglombardo/Projects/ruby-traceview/lib/oboe_metal.rb:83:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/minitest_helper.rb:94:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/instrumentation/delayed_job-client_test.rb:33:in `test_delay'
You can’t perform that action at this time.