Skip to content

Instantly share code, notes, and snippets.

View falkorichter's full-sized avatar
🎯
Focusing

Falko Richter falkorichter

🎯
Focusing
View GitHub Profile
@falkorichter
falkorichter / generateGradle1-10Docset.sh
Created May 22, 2014 20:12
generate gradle 1.10 docset
#!/bin/bash
mkdir .temp
pushd .temp
wget https://services.gradle.org/distributions/gradle-1.10-all.zip
wget http://kapeli.com/javadocset.zip
@falkorichter
falkorichter / build.gradle
Created June 24, 2014 14:52
minimal android library gradle file
apply plugin: 'java'
dependencies{
compile files(System.getenv()['ANDROID_HOME'] + "/platforms/android-19/android.jar")
}
@falkorichter
falkorichter / build.gradle
Created June 24, 2014 15:58
Gradle file for an Android eclipse project.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
@falkorichter
falkorichter / build.gradle
Created July 1, 2014 20:37
Android-L gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion "android-L"
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "sensorbeacon.android.sensorberg"
minSdkVersion 'L'
targetSdkVersion 'L'
@falkorichter
falkorichter / PersistentLong,java
Created October 23, 2014 18:55
a class that represents a long value that is restored from @{SharedPreferences}. It is thread safe.
package com.sensorberg.sdk.internal;
import android.content.SharedPreferences;
import com.sensorberg.sdk.Constants;
/**
* a class that represents a long value that is restored from @{SharedPreferences}. It is thread safe.
*/
public class PersistentLong {
@falkorichter
falkorichter / git-remove-history
Created January 20, 2015 08:01
git-remove-history
#!/bin/bash
set -o errexit
# Author: David Underhill, Falko Richter
# Originally from http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
@falkorichter
falkorichter / postman
Created January 28, 2015 15:22
sensorberg postman change settings
{
"id": "9dd38d2c-dc53-8480-2b9d-cfea5e8bdaed",
"name": "sensorberg",
"timestamp": 1422456944492,
"order": [
"0ea7fa48-3ef7-dcfd-3408-c83c8018d166",
"80a03eb8-6673-88ab-97a9-8637df5b0006",
"20c65136-b238-fa67-f349-c4415cdc4486",
"8a5633d3-1cb9-fbc0-b466-ad169515fca4"
],
@falkorichter
falkorichter / AndroidManifest.xml
Created February 3, 2015 09:03
Override the service declaration that you inherit from an aar depdendency
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application>
<service android:name="com.sensorberg.sdk.SensorbergService"
android:process=""
tools:replace="android:process"/>
</application>
</manifest>
@falkorichter
falkorichter / gist:7cdac7c588a6bd721fd7
Created February 3, 2015 09:13
enable-volley-verbose-logging
adb shell setprop log.tag.Volley VERBOSE

Salmiakki

Licorice Liquor

Ingredients

  • Kossu, Vodka, Klarer or any other clear, neutral tasting liquor
  • Hot Turkish Pepper candy ("Tyrkisk Pejber" or "Turkin Pippuri")
  • A clean, empty bottle with an opening large enough that your candy can be dropped in

Try to get a hand on the original scandinavian, hot version ("Tyrkisk Pejber" or "Turkin Pippuri" with three flames on the packaging).