Skip to content

Instantly share code, notes, and snippets.

View stefanbirkner's full-sized avatar

Stefan Birkner stefanbirkner

View GitHub Profile
@stefanbirkner
stefanbirkner / apidoc.sh
Created October 2, 2014 06:07
Create API documentation with Sphinx
sudo apt-get install python-sphinx
sphinx-apidoc -o dist <module>
sphinx-build -b html source build
@stefanbirkner
stefanbirkner / bash_cheat_sheet.md
Last active August 12, 2025 11:17
My Bash Cheat Sheet

Show the exit code of the last command:

echo $?

Reuse the last part of the previous command:

new_command !!:$

Remove new line from end of file

##About Rules and Runners

Stefan Birkner

@stefanbirkner

##JUnit – The Basics

public class MyTest {

@Test

@stefanbirkner
stefanbirkner / ReadmeDrivenDevelopment.md
Created May 26, 2014 16:46
Readme Driven Development

Readme Driven Development

Problem

Build software that helps people.

Solution

@stefanbirkner
stefanbirkner / demo_slides2go.md
Created May 22, 2014 20:10
Demo for Slides 2 Go

Demo for Slides 2 Go

Just a nice text.

@stefanbirkner
stefanbirkner / commons_lang.sh
Created January 31, 2014 16:50
Migrate Apache Commons Lang from 2.x to 3.x
fgrep -Rl "commons.lang." . | xargs sed -i 's/apache\.commons\.lang\./apache.commons.lang3./g' $1
@stefanbirkner
stefanbirkner / Eclipse Plugins.md
Created October 11, 2013 07:34
A list of nice Eclipse plugins.
@stefanbirkner
stefanbirkner / mvn_bisect.sh
Created October 10, 2013 10:12
Automatic 'git bisect' with Maven; git bisect run ./mvn_bisect.sh
#!/bin/sh
mvn clean test > /dev/null 2> /dev/null
@stefanbirkner
stefanbirkner / git_snippets.txt
Created October 7, 2013 09:23
A collection of useful Git snippets.
git diff --name-only master <branch> //List of the changed files
@stefanbirkner
stefanbirkner / deleteDuplicates.sql
Created July 1, 2013 10:12
Delete duplicates in a table.
-- replace idfield, duplicatewitness and mytable with appropriate names
delete from mytable where idfield in (select max(idfield) from mytable GROUP BY duplicatewitness HAVING COUNT(*) > 1);