Skip to content

Instantly share code, notes, and snippets.


Philipp Tempel philipptempel

Block or report user

Report or block philipptempel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
philipptempel /
Last active Jan 4, 2016
Reservoir - A module and package showcase/listing for FuelPHP
  • OAuth
    • GitHub
    • BitBucket
  • List modules and packages
  • A listing has properties (or metadata, to be more flexible) [* marks required fields] (see also
    • Name*
    • Description*
    • Type*
    • Author*
    • Project Page* (has docs, example, ...)
philipptempel / text-example.text
Last active Jul 25, 2016
Markdown Test Example
View text-example.text
An h1 header
Paragraphs are separated by a blank line.
2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists
look like:
* this one
* that one
philipptempel /
Last active Mar 25, 2018
How to set an icon for a file type on Mac?

Q: How to set an icon for some file types throughout the whole system?

For example, I have text files that ends with .scala extension and I want to associate an icon for that files through the whole system and for any newly created file of this extension.

Gisted from

All credits go to the author of the accepted and top-voted answer by Daniel Beck

A: How to set an icon for a file type on Mac!

philipptempel / jquery.highcharts.js
Created Jun 21, 2013
Quick-n-Dirty Highcharts.js
View jquery.highcharts.js
! function ($) {
chart: {
title: {
text: 'Logarithmic axis demo'
xAxis: {
tickInterval: 1
philipptempel / latex.this-page-intentionally-left-blank.tex
Created Mar 22, 2013
LaTeX: How to have "This page intentionally left blank"
View latex.this-page-intentionally-left-blank.tex
View force-download.php
function force_download($filename = '', $data = '')
if ($filename === '' OR $data === '')
return FALSE;
elseif ($data === NULL)
philipptempel /
Last active Feb 15, 2017
Everything I keep forgetting about LaTex (and you probably, too)

Everything I Forget about LaTeX


Row Spacing

If you want to change the row spacing globally (or locally for the whole tabular), use:

philipptempel /
Created Feb 13, 2013
Readme: Some git commands that you always forget

Git commands

This is a collection of git commands I tend to need from time to time but never remember them. That's why I keep them here so I can access them whenever I need to :)

Completely remove a file/folder from history

If you ever add a file/folder to a branch that you don't want to have there (because it's too large or because it contains sensitive data like passwords etc.), you can make git forget about the file/folder completely, i.e., even the history won't remember the file.

# Remove all paths passed from the history of the repo
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch <FILES>" HEAD


This is a work-in-progress class-documentation for the ICF_Model which can be found here.

Doc: ICF_Model

This is a document to better understand the power of ICF_Model and its database queries. ICF_Model is a CRUD-type model, therefore, this documentation will be separated into the CRUD operations

View php.mobile_detector.php
* Lightweight detector of mobile devices, OSs & browsers
* Copyright 2012 Túbal Martín (email:
* License: GPL2
if ( ! function_exists('mobile_detector') )
You can’t perform that action at this time.