Skip to content

Instantly share code, notes, and snippets.

View mhubig's full-sized avatar

Markus Hubig mhubig

View GitHub Profile
FROM php:5.6-fpm
RUN apt-get update && apt-get install -y \
bzip2 \
libcurl4-openssl-dev \
libpng12-dev \
libmagickwand-dev
RUN docker-php-ext-install mysql json curl gd \
&& pecl install imagick-3.3.0RC2 \

Keybase proof

I hereby claim:

  • I am mhubig on github.
  • I am mhubig (https://keybase.io/mhubig) on keybase.
  • I have a public key whose fingerprint is 7DC8 4233 9609 18C9 369C 6D94 6A95 8B92 DD82 24C0

To claim this, I am signing this object:

@mhubig
mhubig / pew.py
Created November 18, 2013 16:32
Some ideas for a better pew cli.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""PEW - Python Env Wrapper
Usage: pew [--help] [--version] [--verbose]
[--dry-run] <command> [<args>...]
Generic options:
-h, --help Show this screen.
-V, --version Show version.
@mhubig
mhubig / brew_config.sh
Last active December 28, 2015 00:18
Bugreport for "brew install go"
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 57175c67e53551a967f028714a5ea01ab8e96388
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.1
CLT: 5.0.1.0.1.1382131676
@mhubig
mhubig / README.md
Last active December 27, 2015 11:39
Testing a possible workflow with paker.io and vagrant.

The intended workflow should be:

  1. Build the images

    $ packer build template.json
    
  2. Import and start an image.

    $ vagrant up --provider=aws
    

$ vagrant up --provider=virtualbox

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import json
import requests
url = "http://letsrevolutionizetesting.com/challenge"
headers = {'accept': 'application/json'}
while True:
<span id="e116142240">[javascript protected email address]</span>
<script type="text/javascript">
var a="gqMjyw7lZCaKk6p0J3uAUYS1.dbIW2hXzDHmiVNotOPRe_Ev@c4Gs58+LBr-F9QTfxn";
var b=a.split("").sort().join("");
var c="F_-F6F_-FMe_";
var d="";
for(var e=0;e<c.length;e++)
d+=b.charAt(a.indexOf(c.charAt(e)));
document
@mhubig
mhubig / zephyros.py
Last active December 21, 2015 00:49
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import time
import json
import uuid
import Queue
import signal
import select
@mhubig
mhubig / .zephyros.py
Last active December 20, 2015 11:19
Simple zephyros config file. Use `mash` + `UP/DOWN/LEFT/RIGHT` to move and resize your focused window.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# vim: set ft=python fenc=UTF-8 ts=4 sts=4 sw=4 et :
def push_up():
win = zephyros.api.focused_window()
screen = win.screen()
frame = screen.frame_without_dock_or_menu()
frame.h /= 2
frame.inset(10, 10)
@mhubig
mhubig / apt-config.conf
Last active February 5, 2025 11:55
Logstash config file for parsing apt history.log files (usually found at /var/log/apt/history.log).
input {
tcp {
type => "apt-history"
port => 3333
}
}
filter {
# First, glue all lines together into one event!