Skip to content

Instantly share code, notes, and snippets.

View jrstanley's full-sized avatar

James jrstanley

View GitHub Profile
@printminion
printminion / udacityio.sh
Last active August 29, 2015 14:00
Script for getting youtube_id of udacity course videos. Set proper cookie value ans run it like ./get_course.sh cs255
#!/bin/bash
COURCEID=$1
mkdir $COURCEID
#set your udacity cookie here - just in case
MY_COOKIE='cookie: __unam=bla-bla-bla; optimizelyEndUserId=bla;'
#read course data
curl 'https://www.udacity.com/api/nodes/'$COURCEID'?depth=1&fresh=false&required_behavior=view&projection=navigation' \
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 10, 2025 09:21
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