Skip to content

Instantly share code, notes, and snippets.

#replace count=1024 with the number of MB (!) you want to grow the image file
dd if=/dev/zero bs=1024k count=1024 >> my_loop_image_file
e2fsck -f my_loop_image_file
resize2fs my_loop_image_file
View IDViewController.m
// IDViewController.m
// MyFirstIndoorsApp
// Copyright (c) 2013 GmbH. All rights reserved.
#import "IDViewController.h"
#import <CoreLocation/CoreLocation.h>
TomTasche /
Created Sep 1, 2014
commands i used to extract the ssl-certificate from a running system for usage with heroku
keytool -list -keystore keystore.jks
keytool -export -alias 1 -keystore store.jks -file store2.crt
openssl x509 -in store2.crt -out store2-pem.crt -outform pem -inform der
keytool -v -importkeystore -srckeystore store.jks -srcalias 1 -destkeystore store2.p12 -deststoretype PKCS12
openssl pkcs12 -in store2.p12 -out store2.pem
openssl rsa -in store2.key -inform DER -out store2-nopw.key
TomTasche / gist:796504
Created Jan 26, 2011
OpenOffice Document Reader - File Chooser
View gist:796504
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at Method)
at android.content.res.Resources.loadDrawable(
TomTasche / School going Google.
Created Apr 11, 2011
Theses about migrating my school to Google Apps?
View School going Google.
So, I want to migrate my school to Google Apps. Problem is, that we're a technical school ( and Google Apps isn't that attractive for most of us (considering you could create your own Gmail Account within seconds...).
In order to make Google Apps more attractive, I thought about something like offers for cheaper Android phones / tablets and / or ChromeOS netbooks. Additionally, someone asked if it's possible to maintain some kind of default content set that's available for every new account (important contacts, documents, ...).
My theses would then deal with the dis- / advantages of migrating schools to Google Apps, and maybe how behavior changes when using Google-only (Android + ChromeOS + Google Apps) in classroom (how do people share documents? how do they communicate?).
What do you think? Ever done before? Interesting? Stupid? Feedback welcome. :)
Have a great day
View happy.be_json
{"id":1,"text":"Tom³ Tag","timestamp":"Apr 23, 2011 12:11:43 PM","url":"","author":{"id":1,"name":"Tom"}}
View uservoice_announcify.js
<script type="text/javascript">
(function() {
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
View gist:1025735
<receiver android:name=".CallListener">
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
TomTasche /
Created Jul 28, 2011
MobFox's instructions on how to implement their ads on Android. Faulty.
MobFoxView mobfoxView = new MobFoxView(this, publisherId, test, includeLocation, boolean animation);
TomTasche / bloki_integration.html
Created Aug 3, 2011
How To integrate Bloki with two simple lines of code
View bloki_integration.html
<link href=""
rel="stylesheet" type="text/css" />
<script language='javascript'