Skip to content

Instantly share code, notes, and snippets.

View marook's full-sized avatar

Markus Peröbner marook

View GitHub Profile
@cabo
cabo / crlf.screenrc
Created December 19, 2015 13:33
Make GNU screen convert return key (CR) into CR-LF
# put this in your ~/.screenrc to make
# ^A D (uppercase) switch on, and
# ^A U (uppercase) switch off, converting
# CR (return keys) input into CRLF
bind D bindkey "\015" stuff "\015\012"
bind U bindkey "\015" stuff "\015"
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 2, 2024 11:23
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

@julian-boolean
julian-boolean / rickshawResize.js
Last active December 7, 2022 17:49
dynamically resize rickshaw chart.
$(window).on('resize', function(){
graph.configure({
width: window.innerWidth - 20,
height: window.innerHeight - 20
});
graph.render();
});