Skip to content

Instantly share code, notes, and snippets.

View plu's full-sized avatar
🏠
Working from home

Johannes Plunien plu

🏠
Working from home
View GitHub Profile
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
+ (BOOL)attributes:(NSDictionary *)attributes0 areEqualToAttributes:(NSDictionary *)attributes1
{
attributes0 = [NSDictionary dictionaryWithDictionary:attributes0];
attributes1 = [NSDictionary dictionaryWithDictionary:attributes1];
return [attributes0 isEqualToDictionary:attributes1];
}
#import <JLRoutes/JLRoutes.h>
#import "QMessage.h"
#import "QRouter.h"
SpecBegin(QRouter)
__block QMessage *mockMessage;
__block QRouter *subject;
beforeEach(^{
SpecBegin(QLoginViewModel)
__block QAPIClient *mockClient;
__block QSession *session;
__block QLoginViewModel *subject;
beforeEach(^{
mockClient = [JSObjection.defaultInjector getObjectWithArgs:QAPIClient.class, nil];
subject = [JSObjection.defaultInjector getObjectWithArgs:QLoginViewModel.class, nil];
session = [JSObjection.defaultInjector getObjectWithArgs:QSession.class, nil];
plu@plubook ~/Development/cookbooks[master*]$ ssh -i /Users/plu/.ssh/plu [email protected]
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-45-generic x86_64)
ubuntu@ip-10-192-8-214:~$
@plu
plu / logjam.rb
Created February 6, 2015 19:03
sidekiq logjam middleware
class Sidekiq::Middleware::Logjam
def call(worker, job, queue)
TimeBandits.reset
Thread.current.thread_variable_set(:time_bandits_completed_info, nil)
LogjamAgent.start_request(LogjamAgent.application_name, LogjamAgent.environment_name)
action = "#{job['class']}#perform"
status = 200
start_time = Time.now
TimeBandits.benchmark { yield }
rescue
@plu
plu / brew_list
Created September 19, 2014 11:06
jplunien@LM-TXL-00963555 ~/Downloads/php-5.3.29$ brew list -1
ant
apktool
autoconf
automake
bison
boot2docker
brew-cask
bup
cask
@plu
plu / gist:19b5f61436b6156d55c1
Created September 6, 2014 00:54
mitmproxy-ca.pem
jplunien@LM-TXL-00963555 /tmp/.mitmproxy$ openssl x509 -in mitmproxy-ca.pem -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
0c:c9:87:db:8d:a6
Signature Algorithm: sha1WithRSAEncryption
Issuer: CN=mitmproxy, O=mitmproxy
Validity
Not Before: Jul 21 19:25:27 2014 GMT
eth0 Link encap:Ethernet HWaddr 00:16:3e:0d:7e:83
inet addr:130.255.190.225 Bcast:130.255.190.225 Mask:255.255.255.255
inet6 addr: fe80::216:3eff:fe0d:7e83/64 Scope:Link
inet6 addr: 2a02:e00:ffff:c5:a5fb:2057:94d0:89c0/64 Scope:Global
inet6 addr: 2a02:e00:ffff:c5:c58a:c57d:ef72:802a/64 Scope:Global
inet6 addr: 2a02:e00:ffff:c5:422:9d3:1c15:4d24/64 Scope:Global
inet6 addr: 2a02:e00:ffff:c5:39b8:6da6:50b:a9ed/64 Scope:Global
inet6 addr: 2a02:e00:ffff:c5:b599:cfbf:3323:21b1/64 Scope:Global
inet6 addr: 2a02:e00:ffff:c5::2f73:8393/128 Scope:Global
inet6 addr: 2a02:e00:ffff:c5:216:3eff:fe0d:7e83/64 Scope:Global
# OS X
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3