Skip to content

Instantly share code, notes, and snippets.

View fabianbraun's full-sized avatar

Fabian Braun fabianbraun

View GitHub Profile
@fabianbraun
fabianbraun / pp-aliases
Created August 12, 2013 06:03
Polopoly commands / aliases
# check running processes
alias psjava='ps auxww | grep java'
alias pstomcat='ps auxww | grep tc-'
# describe all maven plugins
alias mvn-describe='mvn help:describe -Dplugin=nzz'
# basic installation commands
alias mvn-install='mvn clean install -Dauto-deploy=true'
alias build-pp='mvn clean install -pl modules/polopoly -am -Dauto-deploy=true'
@fabianbraun
fabianbraun / gitconfig
Last active December 10, 2015 21:08
My git config
[alias]
fixup = !sh -c 'git commit --fixup=$1' -
squash = !sh -c 'git commit --squash=$1' -
llog = log --date=local
gitkconflict = !gitk --left-right HEAD...MERGE_HEAD
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
stsh = !CURRENT=$(git symbolic-ref HEAD) && git symbolic-ref HEAD refs/heads/stash && git commit -a -m stashed && git checkout $CURRENT
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
debug = !GIT_PAGER= gdb --args git
@fabianbraun
fabianbraun / mem_usage.php
Created August 31, 2012 11:24
Memory usage test
<?php
class Foo {
function __construct()
{
$this->bar = new Bar($this);
}
}
class Bar {
function __construct($foo = null)
@fabianbraun
fabianbraun / .gitignore
Created February 27, 2012 14:20 — forked from beolivian/.gitignore
Version 2 of Newsml interface
.idea