Skip to content

Instantly share code, notes, and snippets.

@justincy
justincy / git-status.sh
Created December 16, 2015 22:55
Iterate over all sub directories and print a list of which git repos have uncommitted changes.
#!/bin/bash
# Loop through all files and directories
for dir in ./*
do
# Skip files
if [ -d $dir ]; then
cd $dir;
@justincy
justincy / filter-stacktraces.ps1
Created December 10, 2012 21:12
Filter out stacktraces from a logfile and format them nicely
$inputfile = "C:\path\to\logfile.log"
$outputfile = "C:\path\to\output.log"
$stacktraces = get-content $inputfile | where { $_ -like '{*' } | get-unique
new-item $outputfile -type file -force
foreach($st in $stacktraces) {
add-content $outputfile (ConvertFrom-Json $st).stacktrace
add-content $outputfile "`r`n===========================================================================`r`n"
}
@justincy
justincy / Penydarren.geojson
Created February 27, 2014 15:22
Mapshaper infinite loop bug
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.