Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Milkins jasonm23

View GitHub Profile
View inkscape-actions-1.2.md
Action Description
about Inkscape version, authors, license
action-list Print a list of actions and exit
clone Create a clone (a copy linked to the original) of selected object
clone-link Relink the selected clones to the object currently on the clipboard
clone-link-lpe Creates a new path, applies the Clone original LPE, and refers it to the selected path
clone-unlink Cut the selected clones' links to the originals, turning them into standalone objects
clone-unlink-recursively Unlink all clones in the selection, even if they are in groups.
com.inkscape.generate.generate-voronoi Voronoi Pattern
@jasonm23
jasonm23 / Country Style Breakfast Sausage.md
Created Sep 16, 2022
Country Style Breakfast Sausage
View Country Style Breakfast Sausage.md

Country Style Breakfast Sausage

Ingredient: g/kg
Salt 19
Black Pepper 1
White Pepper 1.5
Sage 2
Chilll Flake 1
@jasonm23
jasonm23 / pass-gpg-firefox-android.md
Last active Sep 10, 2022
Setting up Pass on Mac, Firefox and Android.
View pass-gpg-firefox-android.md

Password Store (pass) on Mac, Firefox and Android

A quick word on OPSEC.

Completed the initial setup of [pass] on Macos Big Sur, this is after BitWarden locked me out half a day because apparently I had "network issues", but that seems highly doubtful.

Anyway that shook my faith in Bitwarden, so I searched for an alternative and I'm pretty happy with [pass]. It's simple, no-nonsense. In a nutshell it's front end for a git repo + gpg to handle encryption.

Bascially if your client side can reach/interact with a git repo and works with GPG (2.2 for Android/OpenKeyChain, see below.) we're in business.

@jasonm23
jasonm23 / color-contrast-wcag.md
Last active Sep 2, 2022
Notes on color contrast WCAG
View color-contrast-wcag.md

Notes on color contrast WCAG

contrast-ratios
(L1 + 0.05) / (L2 + 0.05)

Where

L1 is the relative luminance of the lighter of the colors, and L2 is the relative luminance of the darker of the colors.

@jasonm23
jasonm23 / font-favorites.el
Last active Sep 1, 2022
Select favorite fonts in Doom Emacs
View font-favorites.el
(defun ocodo/font-favorites ()
"Set default and variable-pitch fonts from favorites."
(interactive)
(let* ((m-favorites '(("PFDin Mono XThin" (:family "PFDinMono-XThin" :weight normal))
("PFDin Mono Thin" (:family "PFDinMono-Thin" :weight normal))
("PFDin Mono Light" (:family "PFDinMono-Light" :weight normal))
("SauceCodePro Nerd ExtraLight" (:family "SauceCodePro Nerd Font" :weight light))
("SauceCodePro Nerd Light" (:family "SauceCodePro Nerd Font" :weight semi-light))
("SauceCodePro Nerd Regular" (:family "SauceCodePro Nerd Font" :weight normal))
("Input Mono Regular" (:family "Input Mono" :weight normal))
@jasonm23
jasonm23 / text-property-api.org
Last active Aug 31, 2022 — forked from Fuco1/text-property-api-org
Text property api for emacs
View text-property-api.org

All these operations are very natural for buffer objects as well as strings, which leads me to the conclusion we should provide two flavours for each function, for buffers and for strings. The way emacs does it is by specifying an object argument. I find this suboptimal, but it is also possible solution (and would reduce the number of functions in half). Note that there are also different indexing conventions, see the Question below.

All functions come in buffer and string flavours. The “current position” is called point in buffer versions and offset in string

View ogit.md

ogit --- other git

On Unix-es use a function to wrap git

Usage: ogit "path/to/repo/" [git options & sub commands]

ogit() {
  _PATH=$1
 shift
@jasonm23
jasonm23 / order-substring-matches.el
Created Aug 11, 2022
Order a list of substring matches from s.el's s-matched-positions-all
View order-substring-matches.el
(defun order-substring-matches (raw-substring-matches)
"Order a set of RAW-SUBSTRING-MATCHES.
Ordered substrings can then be used to perform replacements
on the original source string.
The list is sorted last to first, so that string replacements
don't invalidate replacements using subsequent substring indexes.
Raw substring matches are in the form:
View bewell-standing-desk-settings-instructions.md

Bewell Ergonomic Standing Desk

I struggled for a while to get my Bewell Ergonomic standing desk to remember it's height presets. Somehow I accidentally got them to work (in a fugue state?). I then promoptly forgot how I got it to work.

Assuming you recieved the same manual that I did, all you learned from it was how to assemble the desk, nothing about the controller.

TBH I now feel very dunb for not working this out sooner, but here's how.

A Quick look at this thing