Skip to content

Instantly share code, notes, and snippets.

View mhoye's full-sized avatar

mhoye mhoye

View GitHub Profile
# If you, like me, have all of your various source-code-like projects in ~/src/
# this is how to give yourself per-project shell history.
#
# I wish I'd done this years ago.
#
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit,
# then do one other thing (set_src_history.sh, below) like so:
cd () {
This gist describes the process of making a self-hosted installation
of Wordpress run with SQLite as a backing store, rather than MySQL.
This is not a step-by-step guide, and will require some degree of
comfort with your filesystem, editors, and logging. This involves
both fighting with and lying to these systems, and consequently
comes with no guarantees whatsoever.
---------------
# Get Alacritty from https://alacritty.org/ and then copy the contents of this
# gist into ~/.alacritty.toml
#
# You can clone the Alacritty themes from https://github.com/alacritty/alacritty-theme
# and install Fira Code from https://github.com/tonsky/FiraCode
#
# Installing TLDR, the simplified-manual project - https://tldr.sh/ - has also been
# useful for me.
#
# You need to specify where you've cloned the themes repo in the first "include"
@mhoye
mhoye / gist:dcc2c2febeba230ca7ceb25c970390a1
Last active November 17, 2025 14:48
uBlock Origin Bonus Content
||youtube.com$domain=~youtube.com # Don't pull youtube JS unless you're using youtube. This breaks
# embedded videos, which is mildly inconveninent, but makes everything much faster.
||www.gstatic.com$domain=~google.com
||gstatic.com$domain=~google.com # Don't use gstatic unless you're on Google. This might
# break some things but so far I haven't noticed any problems.
||accounts.google.com$domain=~google.com # Don't pop up the "log in with google" dialog everywhere. This makes the
# internet feel about 95% less creepy.
||static.licdn.com$domain=~www.linkedin.com # I was changing my 4 month old child's diaper when they said to me, Dad,
# don't run LinkedIn code if you're not using Linkedin. Here's what that
# taught me about b2b sales.