Skip to content

Instantly share code, notes, and snippets.

View Tho85's full-sized avatar
🚀

Thomas Hollstegge Tho85

🚀
View GitHub Profile
@JanBe
JanBe / pre-commit.sh
Created November 6, 2013 14:42
Git pre-commit hook to prevent pry stuff from getting into the codebase
# Git pre-commit hook to check all staged files for pry references
#
# Installation
#
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit
#
# Based on
#
# http://www.alexbevi.com/blog/2012/08/23/keeping-pry-breakpoints-out-of-git/
#
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active February 25, 2024 13:47
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