Instantly share code, notes, and snippets.

# wget
# chmod +x
# ./
echo "Note that the app will run with a separate data dir and thus not have your regular extensions and settings."
echo "What should the app be called?"
read name
View git-status-rec
# Executes `git status` in any git subdirectories you may have in your working directory.
# Install in a directory that's in your PATH, e.g. /usr/local/bin
# cd /usr/local/bin
# wget
# chmod +x git-status-rec
# Then go to your project directory and type:
# git status-rec
for F in *; do
View sourceforge-bigger-filename-column.user.js
// ==UserScript==
// @name SourceForge bigger filename column
// @namespace
// @homepage
// @downloadURL
// @version 0.2
// @author Stefan Sundin
// @description Makes the filename column bigger, saves you from lots of frustration.
// @match *://*/files/*
// ==/UserScript==
View error-handler.php
// edit this function to be notified of script errors by email
function mail_error($error) {
return; // comment this line out and edit this function if you want to use this
$error["timestamp"] = strftime("%Y-%m-%d %T %z");
$error["ip"] = $_SERVER["REMOTE_ADDR"];
View google-project-hosting-download-counter.user.js
// ==UserScript==
// @name Google Project Hosting total download count
// @namespace
// @homepage
// @downloadURL
// @version 0.1
// @author Stefan Sundin
// @description Adds a total download count to the footer.
// @match *://*/downloads/list*
// ==/UserScript==
View bind.c
Copyright (C) 2000 Daniel Ryde
This library is free software; you can redistribute it and/or

Keybase proof

I hereby claim:

  • I am stefansundin on github.
  • I am stefansundin ( on keybase.
  • I have a public key whose fingerprint is 7301 7A35 249F 746F F6FF 91D2 7FA5 D4DA 2764

To claim this, I am signing this object:

View clop.c
// gcc -s -o clop clop.c
// Usage:
// clop | gpg -v
// clop /u = output is printed in Unicode
// clop /a = output is printed in ANSI
// otherwise, output is printed in OEM codepage
View indabamusic-download.rb
require 'net/http'
require 'json'
require 'time'
require 'iso_country_codes'
slug = 'infected-mushroom-kipod-remix-contest'
dest = "indabamusic-#{slug}"
View disqus-gadget.xml
<?xml version="1.0" encoding="UTF-8"?>
<ModulePrefs title="Disqus embed" author="Stefan Sundin" width="640" height="390"></ModulePrefs>
<UserPref name="shortname" datatype="string" default_value="" />
<UserPref name="id" datatype="string" default_value="" />
<UserPref name="url" datatype="string" default_value="" />
<UserPref name="title" datatype="string" default_value="" />
<UserPref name="width" datatype="string" default_value="" />
<UserPref name="height" datatype="string" default_value="" />
<UserPref name="args" datatype="string" default_value="" />