Skip to content

Instantly share code, notes, and snippets.

@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@drio
drio / librato_raspberry_pi.md
Last active August 15, 2019 18:37
How to boot a raspberry PI straight into a Librato dashboard and reload different URLs.

RaspberryPI in kiosk mode to boot straight into a Librato dashboard.

(See all these in action here.)

Bilby Stampede

Intro

See all these in action here.

@ryandotsmith
ryandotsmith / fernet-lite.rb
Last active December 16, 2015 00:39
fernet-lite
#encoding UTF-8
require 'openssl'
require 'base64'
module FernetLite
MAX_CLOCK_SKEW = 60
VERSION = 0x80
def self.split_key(k)
dec = Base64.urlsafe_decode64(k)
@plasticine
plasticine / gist:3485504
Created August 27, 2012 04:20
CI Frontend Stats
require 'chrome_debugger'
require 'librato/metrics'
LIBRATO_PREFIX = "tc.frontend"
LIBRATO_USER = ENV["LIBRATO_USER"]
LIBRATO_KEY = ENV["LIBRATO_KEY"]
PAGES = {
google: 'http://google.com/',
yahoo: 'http://yahoo.com/'
nytimes: 'http://nytimes.com'
@gljeremy
gljeremy / disconnect.rb
Created September 21, 2011 14:03 — forked from tmcw/disconnect.rb
bulk-export run data from Garmin Connect
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername [-o /your/path] [-p yourhttpproxyserver]
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export
# capabilities.
#
@tmcw
tmcw / disconnect.rb
Created July 22, 2011 04:06
bulk-export run data from Garmin Connect
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export
# capabilities.
#