Skip to content

Instantly share code, notes, and snippets.

Stefan Grund stefangrund

Block or report user

Report or block stefangrund

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
stefangrund /
Last active Jul 5, 2019
Hide Asana's up-selling ads in Firefox


Here's how to hide Asana's annoying UPGRADE up-sell ads:

  1. Open about:profiles in Firefox to see the path to your profile folder.
  2. Open your profile folder and add a new folder called chrome.
  3. Add the following userContent.css to the new folder.
  4. Restart Firefox.
stefangrund / shortfilms_newsletter.html
Last active Aug 29, 2015
Mailchimp-Template for the Newsletter
View shortfilms_newsletter.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
/* ========== CLIENT-SPECIFIC STYLES ========== */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
stefangrund /
Last active Aug 29, 2015 CSV Report: Create an ongoing CSV file with people/views from your Analytics. Works perfectly with Panic's Status Board

Gauges CSV Report

Create an ongoing CSV file with people/views from your Analytics. Works perfectly with Panic's Status Board.


  1. Copy to your web server or Dropbox.
  2. Fill out the script's settings with your website's name, your API key, etc.
  3. Run the script daily (with a cron job, Lingon or whatever) - and you're done.
stefangrund / opengraph.php
Created Aug 20, 2014
This is the OpenGraph and Twitter Card implementation for my WordPress blog ( to display nice previews and pictures in Facebook and Twitter.
View opengraph.php
//Get first image in post
function firstImage() {
global $post, $posts;
$first_img = '';
$content = do_shortcode( $post->post_content );
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
$first_img = $matches [1] [0];

Keybase proof

I hereby claim:

  • I am stefangrund on github.
  • I am eay ( on keybase.
  • I have a public key whose fingerprint is E675 DC14 3191 833C F151 B51D 4FBD 4636 7CE7 DBCD

To claim this, I am signing this object:

You can’t perform that action at this time.