Skip to content

Instantly share code, notes, and snippets.

@grahamar
grahamar / Item.scala
Last active March 19, 2018 16:45
TreeSet Issue
object Item {
implicit val ord = new Ordering[Item] {
def compare(i1: Item, i2: Item): Int = {
if (i1.equals(i2)) {
0
} else {
val order = i1.added.compare(i2.added)
if (order == 0) 1 else order
}
}
#!/bin/bash
#
# DROPKICK.SH
#
# Detect and Disconnect the DropCam and Withings devices some people are using to
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh:
#
# http://julianoliver.com/output/log_2014-05-30_20-52
#
# This script was named by Adam Harvey (http://ahprojects.com), who also
@grahamar
grahamar / gource-multiple-repositories.shgource-multiple-repositories.sh
Last active December 25, 2015 19:59
Generates gource video out of multiple repositories.
sudo port install gource
sudo port install ffmpeg