Skip to content

Instantly share code, notes, and snippets.

View dschuermann's full-sized avatar

Dominik Schürmann dschuermann

View GitHub Profile
# This file is part of pylastfp.
# Copyright 2010, Adrian Sampson.
#
# pylastfp is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# pylastfp is distributed in the hope that it will be useful,
@dschuermann
dschuermann / android-colorcat.py
Created September 4, 2012 11:33
Android Colorcat
#!/usr/bin/python
'''
Copyright 2009, The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0

STUN implementations

  • stund
  • Content: server daemon and test client for STUN, RFC-3489 only
  • URL does not load, the project seems abandoned
  • The code is also available on SourceForge, last update was on January 2012
  • TCP and TLS modes not supported
  • The server needs two IPs, it’s mandatory and can not be configured
  • C++, no extra libraries required, Windows port available
  • Version = 0.97 (0.96 package available on Debian, 5 years without updates)
@dschuermann
dschuermann / gist:5509667
Last active December 16, 2015 22:49
/** * Very ugly workaround class for bug in Glassfish. * * This wraps a MultivaluedMap<String, String> in a HttpServletRequest object. * It only implements all methods needed to work with Apache Oltu. * * see * http://jersey.576304.n2.nabble.com/Tomcat-Deployment-Vs-Jetty-Deployment-no-parameters-from-HttpServletRequest-td1516207.html * http://c…
package vcharge.communications.oauth;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.Principal;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Map;
@dschuermann
dschuermann / gist:6954672
Created October 12, 2013 20:36
davdroid contacts.xml
<?xml version="1.0" encoding="utf-8"?>
<ContactsSource xmlns:android="http://schemas.android.com/apk/res/android">
<EditSchema>
<DataKind
kind="name"
maxOccurs="1"
supportsDisplayName="true"
supportsMiddleName="true"
supportsPhoneticFamilyName="true"
supportsPhoneticGivenName="true"
@dschuermann
dschuermann / gist:6960439
Created October 13, 2013 10:00
AdAway log on Samsung Galaxy Tab 10.1, running PAC ROM 4.3
10-12 02:05:21.562 D/Xposed (15961): Starting Xposed binary version 37, compiled for SDK 16
10-12 02:05:21.562 D/Xposed (15961): Phone: GT-P7500 (samsung), Android version 4.3 (SDK 18)
10-12 02:05:21.562 D/Xposed (15961): ROM: cm_p4-userdebug 4.3 JLS36G eng.build.20130923.120411 test-keys
10-12 02:05:21.562 D/AndroidRuntime(15961):
10-12 02:05:21.562 D/AndroidRuntime(15961): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-12 02:05:21.562 D/AndroidRuntime(15961): CheckJNI is OFF
10-12 02:05:21.572 D/dalvikvm(15961): Trying to load lib libjavacore.so 0x0
10-12 02:05:21.582 D/dalvikvm(15961): Added shared lib libjavacore.so 0x0
10-12 02:05:21.592 D/dalvikvm(15961): Trying to load lib libnativehelper.so 0x0
10-12 02:05:21.592 D/dalvikvm(15961): Added shared lib libnativehelper.so 0x0
### Keybase proof
I hereby claim:
* I am dschuermann on github.
* I am dschuermann (https://keybase.io/dschuermann) on keybase.
* I have a public key whose fingerprint is 73EE 2314 F65F A92E C239 0D3A 718C 0701 0001 2282
To claim this, I am signing this object:

OpenPGP deprecation wishlist

TODO:

  • S2K stuff
  • MUST NOT for old-style checksums

Various

Re 3.7.2.2:

@dschuermann
dschuermann / yubikey-apdu.md
Last active August 29, 2015 14:27 — forked from darconeous/yubikey-apdu.md
Yubikey Applet #Security

The AID of the yubikey applet on the Yubikey Neo is A000000527200101.

You can select it with the APDU 00 a4 04 00 08 A0 00 00 05 27 20 01 01.

For the YubiKey applet there are 4 commands:

  • ins 0x01 is a YubiKey API request (as used by the yubico personalization tools) with command in p1
  • ins 0x02 is a request for an OTP with slot in p1 (zero indexed)
  • ins 0x03 is a YubiKey status request
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this Github account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:73ee2314f65fa92ec2390d3a718c070100012282]