Skip to content

Instantly share code, notes, and snippets.

View mhujer's full-sized avatar
🏠
Working remotely

Martin Hujer mhujer

🏠
Working remotely
View GitHub Profile
@mhujer
mhujer / .bashrc
Last active April 27, 2016 09:25 — forked from VasekPurchart/.bashrc
GIT global configuration and enhancements
# used by Git (commit messages, rebase, ...)
export EDITOR=vim
# GIT bash current branch
# by HABR (modified by Dundee)
export PSORIG="$PS1"
function GITBRANCH() {
BRANCH="$(git branch 2>/dev/null | grep '*' | cut -d" " -f2-)"
if [ -n "$BRANCH" ] ; then
export PS1=$PSORIG$(echo -en "\[\033[01;33m\]$BRANCH > \[\033[00m\]")
@mhujer
mhujer / benchmark.php
Created April 1, 2017 11:12
ramsey/uuid serialization/deserialization benchmark
<?php
declare(strict_types = 1);
use Ramsey\Uuid\Uuid;
require_once __DIR__ . '/../vendor/autoload.php';
$data = require __DIR__ . '/dataset.php';
@mhujer
mhujer / boxstarter.ps1
Created September 14, 2017 06:48 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
#
# Learn more: http://boxstarter.org/Learn/WebLauncher
#---- TEMPORARY ---
@mhujer
mhujer / composer.json.patch
Created February 22, 2018 11:18
Enable PHPStan in PHPUnit
diff --git a/composer.json b/composer.json
index d1d0595e5..6b04dc677 100644
--- a/composer.json
+++ b/composer.json
@@ -47,7 +47,8 @@
"sebastian/version": "^2.0.1"
},
"require-dev": {
- "ext-PDO": "*"
+ "ext-PDO": "*",