I hereby claim:
- I am stefansundin on github.
- I am stefansundin (https://keybase.io/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:
// ==UserScript== | |
// @name Launchpad Download Count | |
// @namespace https://gist.github.com/stefansundin/ | |
// @homepage https://gist.github.com/stefansundin/f9df6c5e0fd184c60709 | |
// @downloadURL https://gist.github.com/stefansundin/f9df6c5e0fd184c60709/raw/launchpad-download-count.user.js | |
// @version 0.3 | |
// @author Stefan Sundin | |
// @description Gets the download count of your Launchpad packages. | |
// @icon https://launchpad.net/favicon.ico | |
// @match https://launchpad.net/~*/+archive/ubuntu/* |
// https://gist.github.com/stefansundin/9d95826a712096b24ae2 | |
// https://devblogs.microsoft.com/oldnewthing/?p=3023 | |
// 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 |
I hereby claim:
To claim this, I am signing this object:
/* | |
https://gist.github.com/stefansundin/e4fce00d97f7694c7a27 | |
http://www.ryde.net/code/bind.c.txt | |
http://daniel-lange.com/archives/53-Binding-applications-to-a-specific-IP.html | |
*/ | |
/* | |
Copyright (C) 2000 Daniel Ryde | |
This library is free software; you can redistribute it and/or |
// ==UserScript== | |
// @name Google Project Hosting total download count | |
// @namespace https://gist.github.com/stefansundin/ | |
// @homepage https://gist.github.com/stefansundin/5ac159d384d3e4b3a036 | |
// @downloadURL https://gist.github.com/stefansundin/5ac159d384d3e4b3a036/raw/google-project-hosting-download-counter.user.js | |
// @version 0.1 | |
// @author Stefan Sundin | |
// @description Adds a total download count to the footer. | |
// @match *://code.google.com/p/*/downloads/list* | |
// ==/UserScript== |
<?php | |
# https://gist.github.com/stefansundin/789cc36ccfc75d0ca243 | |
date_default_timezone_set("Europe/Stockholm"); | |
// 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"]; |
// ==UserScript== | |
// @name SourceForge bigger filename column | |
// @namespace https://gist.github.com/stefansundin/ | |
// @homepage https://gist.github.com/stefansundin/f1e81a8f5281f6f4cac4 | |
// @downloadURL https://gist.github.com/stefansundin/f1e81a8f5281f6f4cac4/raw/sourceforge-bigger-filename-column.user.js | |
// @version 0.2 | |
// @author Stefan Sundin | |
// @description Makes the filename column bigger, saves you from lots of frustration. | |
// @match *://sourceforge.net/*/files/* | |
// ==/UserScript== |
#!/bin/bash | |
# cd src | |
# wget https://gist.githubusercontent.com/stefansundin/70400e8b6cb22f7ea7e0/raw/ruby-versions.sh | |
# chmod +x ruby-versions.sh | |
# ./ruby-versions.sh | |
for F in *; do | |
[[ ! -d "$F" ]] && continue | |
unset V |
#!/bin/bash | |
# This script will install a Git pre-push hook that prevents force pushing the master/main branch. | |
# There are three variants that I have built: | |
# - pre-push: prevents force-pushing to master/main. | |
# - pre-push-2: prevents force-pushing to master/main depending on the remote (you need to edit the file!). | |
# - pre-push-3: prevents any type of pushing to master/main. | |
# Set the desired version like this before proceeding: | |
# FILE=pre-push | |
# Single repo installation: |
#!/bin/bash | |
# 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 https://gist.githubusercontent.com/stefansundin/4dbd0c4cfb75ff44ff14/raw/git-status-rec | |
# chmod +x git-status-rec | |
# Then go to your project directory and type: | |
# git status-rec | |
for F in *; do |