Skip to content

Instantly share code, notes, and snippets.

View jakedsouza's full-sized avatar

Jake Dsouza jakedsouza

View GitHub Profile
@jakedsouza
jakedsouza / bumpversion.sh
Created October 5, 2016 06:03 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.

Keybase proof

I hereby claim:

  • I am jakedsouza on github.
  • I am jakedsouza (https://keybase.io/jakedsouza) on keybase.
  • I have a public key whose fingerprint is C808 DBF3 A070 8DAB 9603 A4E1 C24D 9498 A771 F7A6

To claim this, I am signing this object:

@jakedsouza
jakedsouza / testHook.js
Created September 3, 2015 01:21
My first hook.io microservice
// A simple hello world microservice
// Click "Deploy Service" to deploy this code
// Service will respond to HTTP requests with a string
module['exports'] = function helloWorld (hook) {
// hook.req is a Node.js http.IncomingMessage
var host = hook.req.host;
// hook.res is a Node.js httpServer.ServerResponse
// Respond to the request with a simple string
hook.res.end(host + ' says, "Hello world!"');
};

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