Skip to content

Instantly share code, notes, and snippets.

View vonHartz's full-sized avatar

Jan Ole von Hartz vonHartz

View GitHub Profile
@vonHartz
vonHartz / sorted-and-filtered-tree-view.c
Created June 21, 2020 20:48 — forked from matze/sorted-and-filtered-tree-view.c
A sorted and a filtered Gtk+ tree view
#include <gtk/gtk.h>
enum
{
COLUMN_ARTICLE = 0,
COLUMN_PRICE,
N_COLUMNS
};
typedef struct
@vonHartz
vonHartz / git-clearHistory
Created May 18, 2020 08:54 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git