Skip to content

Instantly share code, notes, and snippets.

View jbl0ndie's full-sized avatar
🤓

Jonathon Hodges jbl0ndie

🤓
View GitHub Profile
@jbl0ndie
jbl0ndie / .nanorc
Created October 28, 2026 16:21
Nano customisation in MacOS
# Replace built in nano
# brew install nano
# Enable syntax highlighting
include "/opt/homebrew/share/nano/*.nanorc"
# Enable line numbers
set linenumbers
# Enable mouse support (click to position cursor, scroll)
@jbl0ndie
jbl0ndie / README.md
Created October 6, 2026 11:20
Rectangle config for users migrating from SizeUp

Rectangle config (SizeUp shortcuts)

Things that don't carry over exactly

  • Moving windows between Spaces (⌃⌘ arrows): Rectangle can't move windows between Spaces, so I left these shortcuts out. If you rely on them, you'll need a separate tool such as yabai.

  • Centre and resize: Rectangle's own "Center" action only moves the window and doesn't resize it. I used its "Specified" action instead, which centres the window at 800×600. It doesn't show in the settings window, so you can't change it there. To change the size later, edit specifiedWidth/specifiedHeight

@jbl0ndie
jbl0ndie / gist:7f7952a6bb22f6d4969fb6915fce17df
Last active August 8, 2025 15:29
Ignore MacOS folder from dropbox sync, if you've opted out of File Provider
# https://help.dropbox.com/sync/ignored-files#mac2
# file
xattr -w com.dropbox.ignored 1 '/Users/yourname/Dropbox (Personal)/YourFileName.pdf'
# all files in your folder, note trailing slash
xattr -w com.dropbox.ignored 1 '/Users/yourname/Dropbox (Personal)/your_folder/'
# to remove, delete the xattr, may need to restart Dropbox for it to see the change
xattr -d com.dropbox.ignored '/Users/yourname/Dropbox (Personal)/your_folder/'
@jbl0ndie
jbl0ndie / gist:bd2cfb22bfdde141116d71c742bd203c
Last active August 12, 2025 06:36
Escape commas in Looker filters
# Looker splits query strings with commas
# To filter for a string containing a comma you need to escape the comma or Looker splits the string at the comma
# The documentation is poor in this area
# Example
Plumbers, heating engineers and technicians
# Is split to
Plumbers
heating engineers and technicians
@jbl0ndie
jbl0ndie / gist:22c161b2a9dc6c0c9a642a9c52c25b44
Created December 10, 2024 20:44
Gracefully kill processes by name in MacOS terminal
pkill -f "string"
@jbl0ndie
jbl0ndie / gist:4d966b71fc62a8c4c004de097fe19974
Created October 24, 2024 05:14
Count records in a CSV matching a string
grep "your_string" your_file.csv | wc -l
@jbl0ndie
jbl0ndie / Jira cards Done yesterday (or Friday if Monday
Last active January 17, 2023 11:06
Jira JQL for Done and updated today, or updated yesterday, or updated Friday
// Jira JQL Done, updated today, or updated yesterday, or updated Friday
status = Done AND (updated > startofday() OR (updated > -1d) OR (updated <= startofWeek() AND updated > -3d))
// Jira JQL resolved, resolved today, or resolved yesterday, or resolved Friday
status = Done AND (resolved > startofday() OR resolved > -1d OR resolved <= startofWeek() AND resolved > -3d)
@jbl0ndie
jbl0ndie / gist:a773b26c0a53c708b458841256aed5d1
Created January 28, 2022 16:11
Excluding labels in Jira with JQL
AND Labels != XYZ
# Jira returns only cards with a label but not XYZ
# does not return cards without a label, which is unexpected when you first think of it
# is returning cards with labels, specifically labels !=XYZ
# Solution: be explicit
AND (Labels is null OR Labels != XYZ)
# returns all cards without a label or a label which is not XYZ
@jbl0ndie
jbl0ndie / gist:65c97ca4e6e6c7c5b830cf684e144a9a
Created April 4, 2017 21:41
Gracefully quit OS X application from command line
osascript -e 'quit app "APPLICATIONNAME"'
i.e.
osascript -e 'quit app "Calculator"'
I used this before running a rsync (well Grsync actually) script,
so my database application wasn't running while it was backed up.
@jbl0ndie
jbl0ndie / multiSend01.workflow
Created March 21, 2017 13:25
Send a file or files as Mail attachments in OS X from Finder, with the subject as the filename
on run {input, parameters}
(* This script takes a selection of files, appends them to individual emails to a predetermined address
using the filename as the subject of the email and then sends it *)
set mgPeople to "YourSenderName"
set mgAddress to "your.email@address.com"
--set mgAddress to "debug.mail@address.com" --debug address
set theSender to "debug.mail@address.com"
set mgContent to ""