Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / xterm-256color.svg
Last active July 10, 2025 05:53
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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 / 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.
h1. Papervision3D ::curl http://blog.papervision3d.org/
<link rel="shortcut icon" type="image/x-icon" href="http://www.gravatar.com/blavatar/910a9f52f167f9b7cebf4f617c2e29e9?s=16&#038;d=http://s2.wp.com/i/favicon.ico" />
<link rel="icon" type="image/x-icon" href="http://www.gravatar.com/blavatar/910a9f52f167f9b7cebf4f617c2e29e9?s=16&#038;d=http://s2.wp.com/i/favicon.ico" />
<link rel="apple-touch-icon" href="http://www.gravatar.com/blavatar/23e19631d006200351ce203fb2b47175?s=158&#038;d=http://s0.wp.com/wp-content/themes/h4/i/webclip.png" />
<div class='snap_preview'><p><a href="http://events.q-dance.nl/2010-06_12-juni_defqon1/" target="_blank"><img src="http://papervision3d.files.wordpress.com/2010/04/defqonthumb.jpg?w=447&#038;h=312" alt="" title="Defqon.1" width="447" height="312" class="alignnone size-full wp-image-991" /></a></p>
<p>Monty Python meets MadMax in this fully interactive journey. <a href="http://www.hanazuki.com" target="_blank">Hanazuki</a> studio created this trippy experience websit
@jasonm23
jasonm23 / How to set overscan on MacOS Displays when the slider is missing.md
Last active November 27, 2024 14:18
How to set overscan on MacOS Displays when the slider is missing

How to set overscan on MacOS Displays when the slider is missing?

Screenshot 2022-06-03 at 12 21 03

When I connect a monitor or TV to my Mac. Usually I have an overscan slider in the Display Preferences. However sometimes, it's not there. Ironically, this always seems to happen when the screen needs overscan adjustment.

Thankfully it's not impossible to fix the issue.

I haven't found much useful information on this, the difficulty level is quite high, we will need to use the terminal. Open spotlight and type Terminal, press enter and you'll get an imposing Terminal window, with a flashing cursor and not much else. We'll come back to that in a moment or two.

@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.