Skip to content

Instantly share code, notes, and snippets.

View StephaneTrebel's full-sized avatar
🎯
Focusing

Stéphane Trebel StephaneTrebel

🎯
Focusing
View GitHub Profile
@StephaneTrebel
StephaneTrebel / passgitgpg.md
Created January 3, 2023 14:53 — forked from flbuddymooreiv/passgitgpg.md
Setting up pass on git with a gpg key

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.

@StephaneTrebel
StephaneTrebel / 99-noto-mono-color-emoji.conf
Created November 10, 2023 14:33 — forked from yzhernand/99-noto-mono-color-emoji.conf
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
This config seems to ensure that *all* monospace fonts are affected without breaking
<code> blocks elsewhere. The significant change appears to be setting binding="weak"
on line 22.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
@StephaneTrebel
StephaneTrebel / remove_ofx_blocks.sh
Last active March 24, 2025 09:12
Easily delete blocks from an OFX file
#!/bin/bash
# I always have issues with parsing LEDGERBAL and AVAILBAL in OFX files
# So I use this simple loop (that could be even further simplified with a `find`)
# To remove these two blocks, since I don't actually use them.
# One convenient thing is that these two blocks are contiguous so I only need
# To have a regex for the start of the first one (LEDGERBAL) to the end
# of the second one (AVAILBAL)