Skip to content

Instantly share code, notes, and snippets.

View JeppeLeth's full-sized avatar

Jeppe Leth JeppeLeth

View GitHub Profile
@JeppeLeth
JeppeLeth / android_demo_mode.sh
Created August 10, 2017 06:36
Android Demo mode activation using ADB
#!/bin/sh
CMD=$1
if [[ $ADB == "" ]]; then
ADB=adb
fi
if [[ $CMD != "on" && $CMD != "off" ]]; then
echo "Usage: $0 [on|off] [hhmm]" >&2
exit
@JeppeLeth
JeppeLeth / JavaNetCookieJar
Created September 11, 2017 08:13
JavaNetCookie - A cookie jar that delegates to a java.net.CookieHandler
/**
* A cookie jar that delegates to a {@link java.net.CookieHandler}.
* Copied from https://github.com/square/okhttp/blob/master/okhttp-urlconnection/src/main/java/okhttp3/JavaNetCookieJar.java
*/
public class JavaNetCookieJar implements CookieJar {
private final CookieHandler cookieHandler;
public JavaNetCookieJar(CookieHandler cookieHandler) {
this.cookieHandler = cookieHandler;
}
@JeppeLeth
JeppeLeth / keybase.md
Last active October 10, 2017 19:03
Letbane proof

Keybase proof

I hereby claim:

  • I am jeppeleth on github.
  • I am jeppeleth (https://keybase.io/jeppeleth) on keybase.
  • I have a public key ASA6DAMkGUk4G0wq8agDWO5JW5qxOJV9vfGgkGtW3gdtHwo

To claim this, I am signing this object: