Skip to content

Instantly share code, notes, and snippets.

View gdetrez's full-sized avatar
🏠
Working from home

Grégoire Détrez gdetrez

🏠
Working from home
  • Gothenburg, Sweden
View GitHub Profile
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 11, 2024 22:46
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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: