Skip to content

Instantly share code, notes, and snippets.

View stefanhoth's full-sized avatar
:shipit:
Shipping it

Stefan Hoth stefanhoth

:shipit:
Shipping it
View GitHub Profile
@stefanhoth
stefanhoth / keybase.md
Created May 31, 2014 21:45
Pretty nerdy way to prove to keybase.io my github account belongs to me. I love it!

Keybase proof

I hereby claim:

  • I am stefanhoth on github.
  • I am stefanhoth (https://keybase.io/stefanhoth) on keybase.
  • I have a public key whose fingerprint is 5FD2 323B 54C3 241D 8E3F 3F98 823F FCCB 59AE 700F

To claim this, I am signing this object:

@stefanhoth
stefanhoth / gcm_send.php
Created April 2, 2014 14:29
Example on how to send a message through Google Cloud Messaging (GCM, see http://developer.android.com/google/gcm/server.html ) using a simple PHP script
<?php
// Replace with real BROWSER API key from Google APIs
$apiKey = "<ENTER API KEY HERE>";
// Replace with real client registration IDs
$registrationIDs = array(
"APA91bGOrAyHktj3DU0H0z4tsu-...",
"APA91bHr0vERPIe-DHbQGZLBjuj..."
);
@stefanhoth
stefanhoth / android-libs.md
Last active April 18, 2020 05:02
GDG Android in Berlin brainstorming session Collection of libraries that should be included as of today in a modern Android app-

#GDG Android in Berlin brainstorming session


On November 27, 2013 I was asking the brilliant Android developers at GDG Android in Berlin for their favorite libraries that make their lives easier and should be included in every newly developed app.

This is the list of libraries we collected during this 10 minute session.

Architecture

@stefanhoth
stefanhoth / check_http_echo_body.sh
Last active December 29, 2015 13:29
nagios check for parsing the body of the http response for a detailed message
#!/bin/bash
#check input parameters
if [ -z $1 ]; then
echo "Usage: $0 <url>"
exit 3
fi
#url to check
checkurl=$1
@stefanhoth
stefanhoth / Gruntfile.js
Created November 6, 2013 19:55
Grunt buildfile with angular: livereload, cssmin, jsmin all in one
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
js: {
src: [
'app/bower_components/angular/angular.js',
/*
* Mass Emailer Google Spreadsheet and Forms Script.
*
* Changelog:
*
* 30. Apr. 2013
* - add support for Form submit auto-replies
* 27. Apr. 2013
* - trial checkbox allows easier debugging
* 16. Feb. 2012
@stefanhoth
stefanhoth / build.gradle
Created December 3, 2012 18:24
A buildfile for the Gradle build system for Android
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.2'
}
}
@stefanhoth
stefanhoth / gist:3749214
Created September 19, 2012 11:38 — forked from gnunicorn/gist:3748738
Git for Beginners: Call for Coaches

The OpenTechSchool has set up and hosted a few tech workshops and meetups here in Berlin now. Aside from the monthly Beginners Meetup and hosting the Udacity Global Meetup we hosted workshops for program beginners in Python and Javascript on our own and on the premise of CampusParty.

One thing that was extraordinary popular on CampusParty was the Workshop on Git for beginners. And we decided to do it again, this time with a closer focus on version control as a major benefit in code sharing (by using git and github) for beginners - free of charge.

So if you are interested in

@stefanhoth
stefanhoth / gist:3749213
Created September 19, 2012 11:38 — forked from gnunicorn/gist:3748738
Git for Beginners: Call for Coaches

The OpenTechSchool has set up and hosted a few tech workshops and meetups here in Berlin now. Aside from the monthly Beginners Meetup and hosting the Udacity Global Meetup we hosted workshops for program beginners in Python and Javascript on our own and on the premise of CampusParty.

One thing that was extraordinary popular on CampusParty was the Workshop on Git for beginners. And we decided to do it again, this time with a closer focus on version control as a major benefit in code sharing (by using git and github) for beginners - free of charge.

So if you are interested in

@stefanhoth
stefanhoth / Log.js
Created June 20, 2012 08:13
A simple logging wrapper for your javascript
/**
* handler for grouping all custom in-app events into one funtion
*/
var Log = {
LEVEL_DEBUG: 100,
LEVEL_INFO: 90,
LEVEL_NORMAL: 50,
LEVEL_ERROR: 20,
LEVEL_OFF: 0,