Skip to content

Instantly share code, notes, and snippets.

View michael-k's full-sized avatar

Michael K. michael-k

  • North Ayrshire, Scotland
View GitHub Profile
@michael-k
michael-k / git-lfs-diff.sh
Created June 26, 2015 10:22
Git LFS Diff
#!/bin/sh
if [ $# -ne 3 ] ; then
echo "Usage: $0 <ref> <ref> <filename>"
exit 1
fi
RevA=$1
RevB=$2
File=$3
@michael-k
michael-k / README.md
Last active August 29, 2015 14:20
Windpool Windparks

Icon windmill.svg was created by Edward Boatman and is licensed as Creative Commons – Attribution (CC BY 3.0).

Create TopoJSON file from GeoJSON files with:

topojson -o de-wind.json --id-property id --properties name=name --properties color=color --properties count=count -- de.geojson wind.geojson
@michael-k
michael-k / git-unsorted-log.go
Last active May 19, 2021 17:14 — forked from timhughes/git-unsorted-log.go
An example of howto use git2go (https://github.com/libgit2/git2go) which is a libgit2 (https://libgit2.github.com/) bindings package for golang.
/*
requires libgit2
*/
package main
import (
"github.com/libgit2/git2go"
"fmt"
#
# Copyright (C) 2013 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve