Skip to content

Instantly share code, notes, and snippets.

View lukaszb's full-sized avatar

Lukasz Balcerzak lukaszb

  • Warsaw
View GitHub Profile
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
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

@dentearl
dentearl / haiku.py
Created August 23, 2012 21:31 — forked from hasenj/haiku.py
Heroku-ish name generator, Python
from random import choice
def heroku(hex=False):
# modified by @dentearl https://gist.github.com/3442096
# who forked from @hasenj https://gist.github.com/3205543
# who forked from: @afriggeri https://gist.github.com/1266756
# example output:
# 'golden-horizon-2076'
adjs = ['afternoon', 'aged', 'ancient', 'autumn', 'billowing',
'bitter', 'black', 'blue', 'bold', 'broken',
'calm', 'caring', 'cold', 'cool', 'crimson',
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active April 26, 2024 23:26 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@bsstoner
bsstoner / http.js
Created May 21, 2012 03:30
support helper for doing http tests with mocha
/**
* Modified version of TJ's http support file from the Express repo:
* https://github.com/visionmedia/express/blob/master/test/support/http.js
*
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, should = require('should')
, methods = ['get','post','put','delete','head']
@aliles
aliles / .startup.py
Created July 25, 2011 11:25
Enhancements to Python REPL
"""REPL enhancements for Python interactive interpreter.
This module adds:
- tab completion (requires readline support)
- command history between sessions
- syntactic sugar for 'help(stmt)' via 'stmt?'
- output history
To enable set the environment variables: