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 / 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
@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 / PY-Drawing3D.ipynb
Created March 14, 2023 09:57 — forked from WetHat/PY-Drawing3D.ipynb
Matplotlib: 3D Arrows and 3D Annotations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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 / push-docs.sh
Last active June 7, 2021 15:23
Push git ignored folder to subtree branch
# based on https://stackoverflow.com/a/40178818/11051330
STATUS="$(LC_ALL=C git status)"
DOCSDIR="docs/_build/"
if [[ $STATUS == *"nothing to commit, working tree clean"* ]]
then
awk -vLine="$DOCSDIR" '!index($0,Line)' ./.gitignore
git add .
git commit -m "Edit .gitignore to publish docs"
@vonHartz
vonHartz / orphan.sh
Last active May 26, 2021 13:14
Orphan branch for github pages
$ git checkout --orphan gh-pages
# preview files to be deleted
$ git rm -rf --dry-run .
# actually delete the files
$ git rm -rf .
@vonHartz
vonHartz / create_cards.py
Created April 2, 2021 10:48
Auto create Anki cards from batch images
"""
Inspired by https://www.reddit.com/r/Anki/comments/1xfpbe/how_to_make_a_deck_out_of_a_folder_of_images_one/cfaylv0?utm_source=share&utm_medium=web2x&context=3
Added a header column for my own card style, fixed sorting and added media import.
"""
import sys
import os
import uuid
from shutil import copyfile
@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 / 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