Skip to content

Instantly share code, notes, and snippets.

View brantz's full-sized avatar

Thomas Rudolf brantz

  • Givve
  • Munich, Germany
View GitHub Profile
@brantz
brantz / gist:134ea0ca4b29c89e175f5cf295d98e01
Created May 5, 2020 11:19
Waves OVox debug log from osx
default 13:16:26.043818+0200 Alfred LAUNCHING:0x0-0x1e31e3 OVox foreground=1 bringForward=1 seed=289 userActivityCount=0
default 13:16:26.049487+0200 loginwindow -[PersistentAppsSupport applicationReady:] | App: OVox, ready, updating active tracking timer
default 13:16:26.049530+0200 loginwindow -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: Checked in app : OVox
default 13:16:26.051201+0200 runningboardd Resolved pid 21740 to [executable<OVox(501)>:21740]
default 13:16:26.052196+0200 runningboardd [executable<OVox(501)>:21740] This process will not be managed.
default 13:16:26.052221+0200 runningboardd Now tracking process: [executable<OVox(501)>:21740]
default 13:16:26.052541+0200 runningboardd Acquiring assertion targeting executable<OVox(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:97] with description <RBSAssertionDescriptor; foregroundApp:21740; ID: 251-97-1151; target: 21740> attributes = {
<RBSDomainAttribute: 0x7f814ca15f80; domain: com.apple.lau
@brantz
brantz / .rubocop.yml
Created September 27, 2018 14:15
.rubocop.yml WIP
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'db/schema.rb'
- 'config/**/*.rb'
- 'bin/*'
Documentation:
module SalesforceBulk
class Connection
def initialize(username, password, api_version, sandbox)
@username = username
@password = password
@api_version = api_version
@sandbox = sandbox
login
end
@brantz
brantz / error_mailer_test.py
Created December 5, 2012 13:59
the webtest test
#encoding: utf-8
from webtest import TestApp
from webtest.debugapp import debug_app
from server import Server
import unittest
class ErrorMailerTest(unittest.TestCase):
def test_minimal_request(self):
self.app = TestApp(Server)
@brantz
brantz / error_mailer_test.py
Created December 5, 2012 13:58
the webtest test
#encoding: utf-8
from webtest import TestApp
from webtest.debugapp import debug_app
from server import Server
import unittest
class ErrorMailerTest(unittest.TestCase):
def test_minimal_request(self):
self.app = TestApp(Server)
@brantz
brantz / server.py
Created December 5, 2012 13:53
the bottle server
#encoding: utf-8
from os import getenv
from error_mailer import ErrorMailer
from bottle import route, run, template, request, BaseResponse
import sys
import ConfigParser
import logging
class Server():
# check if python version is >= 2.7
# encoding: utf-8
files = Dir.glob(File.dirname(__FILE__) + '*.json')¬
files.each do |file|
content = File.read(file)
content.gsub('amp;', '')
new = File.open(file, 'wb')
new << content
new.close
end
@brantz
brantz / open_immo.rb
Created November 20, 2012 11:10
factories/open_immo.rb
# encoding: UTF-8
def open_immo_listing
JSON.parse(File.read(File.dirname(__FILE__) + "/immo_net_listing.json"))
end
def open_immo_xml
File.read(File.dirname(__FILE__) + '/immo_net_listing_generated_valid.xml')
end
@brantz
brantz / output.txt
Created November 20, 2012 10:19
pip install -r requirements.txt
Downloading/unpacking lxml (from -r requirements.txt (line 1))
Downloading lxml-3.0.1.tar.gz (3.2MB): 3.2MB downloaded
Running setup.py egg_info for package lxml
Building lxml version 3.0.1.
Building without Cython.
Using build configuration of libxslt 1.1.26
warning: no previously-included files found matching '*.py'
warning: no files found matching '*.txt' under directory 'src/lxml/tests'
Downloading/unpacking nose (from -r requirements.txt (line 2))
@brantz
brantz / return
Created January 20, 2012 22:56
return from httpbin
"origin": "188.174.193.115",
"files": {},
"form": {},
"headers": {
"Content-Length": "0",
"Accept-Language": "en-us",
"Accept-Encoding": "gzip, deflate",
"X-Forwarded-Port": "80",
"Host": "httpbin.org",
"Accept": "*/*",