Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / get_bookmarks_from_firefox.py
Created June 20, 2025 08:45
Get bookmarks directly from firefox places.sqlite WIP
import sqlite3
import os
import json
import argparse
import datetime
import sys # For sys.platform
import shutil # For copying database, if enabled
import configparser # For parsing profiles.ini
def get_firefox_profile_path(profile_name=None, newest=False):
@jasonm23
jasonm23 / copyq-sync-config.md
Last active June 11, 2025 00:49
Configure CopyQ for tab synchronizarion to directory

CopyQ Tab Sync Config from CLI

Sync a Tab to a Directory with copyq, not setable from the cli tool, but is possible in the config.

(linux/macos: ~/.config/copyq/copyq.conf | windows: %APPDATA%\copyq\copyq.conf )

Define tabs

Config will default to 1 tab called &clipboard. The & marks the letter to activate with Alt

@jasonm23
jasonm23 / make-nerd-font-glyphs.js-script.sh
Created May 23, 2025 04:41
Quick curl, jq, fzf script to search for a Nerd Font icon glyph
#!/bin/bash
curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \
| jq -r 'to_entries | map(select(.key != "METADATA")) | .[] | "\"\(.key)\": \(.value | @json),"' \
| sed 's/^/ /' \
| awk 'BEGIN {print "export const NerdFontGlyphs = {"} {print} END {print "}"}' \
> nerd-font-glyphs.js
@jasonm23
jasonm23 / uv-self-contained-script.md
Created April 10, 2025 02:01
Running a Python script with uv

To run a python script which has dependencies, with uv without extra steps, just execute it.

#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [<array of string names of required modules>]
# ///

# and the rest of the script goes here.
@jasonm23
jasonm23 / gopassbridge-dark-setup-windows.md
Last active October 31, 2024 02:43
GopassBridge-Dark For Firefox on Windows
@jasonm23
jasonm23 / how-to-run-passff-on-windows.md
Last active October 19, 2024 06:06
Running passff on Windows and Firefox

Hi all, Please consider donating to this or any of my many of opensource projects.

Buy Me a Coffee at ko-fi.com

How To run PassFF for Firefox on Windows

Getting it running on Windows is fairly simple, but the browser extension PassFF with its host script, PassFF host didn't work for me after running the installer install_host_app.bat file.

I found gopass which is a Go implementation of the original pass script, and seems to be 100% compatible.

@jasonm23
jasonm23 / ocodo.pwsh.json
Last active June 10, 2025 02:32
Pwsh prompt
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#26C6DA",
"style": "diamond",
"template": "[{{ .UserName }}@{{ .HostName }}] ",
@jasonm23
jasonm23 / open-key-system-harmonic-mixing.md
Last active October 4, 2024 11:58
OpenKey Harmonic Mixing System

How to Use OpenKey Harmonic Mixing Notation

Used by Native Instruments Traktor and other DJ/Music software (open alternative to Camelot, which is functionally equivalent to OpenKey)

  1. Key Labels: The notation uses a combination of a number and a letter. The number indicates the key's position in the circle (from 1 to 12), and the letter indicates the mode: m for minor and d for major. You can mix from Minor (openkey m, camelot B) to Major (openkey d, camelot A) and Major to Minor
@jasonm23
jasonm23 / emacs.desktop
Created April 25, 2024 02:50
Emacs desktop application launcher file
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient -a emacs -n \\"\\$@\\"; else exec emacs; fi" dummy %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
@jasonm23
jasonm23 / recreate-efi.md
Created February 27, 2024 09:03
Recreate /boot/efi/EFI after accidentally deleting the EFI partition