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 / 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 git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@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 / nteract-tricks.md
Created March 30, 2021 14:44 — forked from vhoulbreque/nteract-tricks.md
Make conda environments visible in nteract

Nteract tricks

To add a conda environment to the list of environments:

$ source activate thisenv
(thisenv) $ pip install ipykernel
(thisenv) $ python -m ipykernel install --user --name thisenv
@vonHartz
vonHartz / tmux.conf
Created June 15, 2022 09:44 — forked from mikeboiko/tmux.conf
Automatically update $DISPLAY for each tmux pane after attaching to session
set-hook -g client-attached 'run-shell /bin/update_display.sh'
@vonHartz
vonHartz / logseq_install_update.sh
Last active December 6, 2022 13:08 — forked from evdcush/logseq_install_update.sh
Handy shell script to install and update Logseq on Linux
#!/usr/bin/env bash
# This script comes from Joplin, MIT License Copyright Laurent Cozic:
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh
# Modified here by github.com/evdcush to instead install and update Logseq.
set -e
trap 'handleError' ERR
@vonHartz
vonHartz / PY-Drawing3D.ipynb
Created March 14, 2023 09:57 — forked from WetHat/PY-Drawing3D.ipynb
Matplotlib: 3D Arrows and 3D Annotations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vonHartz
vonHartz / settings.jsonc
Created May 15, 2023 11:02 — forked from hyperupcall/settings.jsonc
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@vonHartz
vonHartz / split_keyboards.md
Created June 16, 2023 08:18 — forked from itod/split_keyboards.md
Every "split" mechanical keyboard currently being sold that I know of