Skip to content

Instantly share code, notes, and snippets.

View neckhair's full-sized avatar

Philippe Hässig neckhair

  • Zürich
View GitHub Profile
@neckhair
neckhair / README.md
Last active March 28, 2019 14:42
BitBar Redmine Plugin

Redmine Bitbar Plugin

This is a Redmine plugin for BitBar.

It lists all issues which are assigned to you and groups them by status. It also indicates overdue issues and shows which issues have been changed today.

Installation

  1. Copy the source into your plugin folder.
@neckhair
neckhair / Docker-gen on the Mac.md
Last active December 10, 2021 02:00
Setup docker-gen on OS X

How to setup docker-gen on the Mac:

This guide prepares your mac so you can access your docker containers by their docker-compose project name. So if you have a container with the label com.docker.compose.project=myapp running you will be able to access it on the url myapp.docker.

DNS

This guide assumes that you are already have a working dnsmasq setup on your mac. The follwing command resolves to 127.0.0.1:

dig @localhost myapp.dev
@neckhair
neckhair / .dockerignore
Created November 15, 2016 09:48
Sample dockerignore for a Rails app
.git
.gitignore
README.md
#
# OS X
#
.DS_Store
.AppleDouble
.LSOverride
class CurrentUserProvider
def self.instance
@instance = Thingy.new
end
def around(controller)
begin
Thread.current[:current_user] = controller.current_user
yield
ensure
#!/bin/bash
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
tempfile=/tmp/$filename-gray.jpg
convert $1 -colorspace gray -auto-level -threshold 50% $tempfile
convert -density 150 -quality 20 -resize 50% -compress lzw $tempfile $tempfile
tesseract -l deu $tempfile $filename pdf

Keybase proof

I hereby claim:

  • I am neckhair on github.
  • I am neckhair (https://keybase.io/neckhair) on keybase.
  • I have a public key whose fingerprint is 633A 6F92 F704 98E2 5E4A 57E6 5733 8A09 DD84 E473

To claim this, I am signing this object: