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

before/after

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
stefangrund / shortfilms_newsletter.html
Last active Aug 29, 2015
Mailchimp-Template for the http://shortfil.ms Newsletter
View shortfilms_newsletter.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>*|MC:SUBJECT|*</title>
<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
stefangrund / Readme.md
Last active Aug 29, 2015
Gaug.es CSV Report: Create an ongoing CSV file with people/views from your Gaug.es Analytics. Works perfectly with Panic's Status Board
View Readme.md

Gauges CSV Report

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

Installation

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

Keybase proof

I hereby claim:

  • I am stefangrund on github.
  • I am eay (https://keybase.io/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.