Skip to content

Instantly share code, notes, and snippets.

View kakra's full-sized avatar
🏠
Let's inject fun into Linux Gaming

Kai Krakow kakra

🏠
Let's inject fun into Linux Gaming
View GitHub Profile
@kakra
kakra / git-superfixup.pl
Last active December 28, 2019 15:11 — forked from oktal3700/git-superfixup.pl
Perl script for automating the process of creating fixup! commits for use with git rebase -i --autosquash
#!/usr/bin/perl
# Scan unstaged changes in git tracked files, identify which commits they could
# be applied to as fixups, and automatically produce the appropriate "fixup!"
# commits for use with "git rebase -i --autosquash".
#
# Copyright (C) 2016, 2017 by Mat Sutcliffe
# This program is free software; you can redistribute it and/or modify it under
# the GNU General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
@kakra
kakra / php-server.sh
Created August 15, 2011 09:07 — forked from kakra/gist:1085054
PHP Stand-Alone Server based on LigHTTPd
#!/bin/bash
TMPNAME=$(mktemp /tmp/lighttpd-cgi-php-XXXXXX)
if [ -d "www" ]; then
DOCROOT=$(pwd)/www
else
DOCROOT=$(pwd)
fi