Skip to content

Instantly share code, notes, and snippets.

View HowlingEverett's full-sized avatar

Justin Marrington HowlingEverett

View GitHub Profile
@HowlingEverett
HowlingEverett / cruddy_ruby_install.sh
Last active March 19, 2020 05:45
Install Ruby 2.3.x on Mac OS Catalina with Open SSL 1.0
# Why would you want to do this? Because you have to use Ruby 2.3.x for legacy reasons. Catalina's default OpenSSL won't fly with Ruby 2.3.x, so you need to use the (horribly insecure) OpenSSL 1.0.
# Assumes: homebrew
brew install rbenv/tap/openssl@1.0
export LDFLAGS="-L$(brew --prefix openssl@1.0)/lib"
export CPPFLAGS="-I$(brew --prefix openssl@1.0)/include"
CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)" RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)" ruby-install ruby 2.3.8 -- ----with-openssl-dir=$(brew --prefix openssl@1.0)
@HowlingEverett
HowlingEverett / README.md
Last active November 21, 2020 16:50
Publish today's Bear note to-dos to the Things 3 Inbox

Publishing Todos from Bear notes into Things 3

I love Bear's Markdown-ish text editing and tagging, and it's my favourite notes app by far. Bear notes can include Tasks, which are internally stored using the Takspaper syntax - on a line for a task, + for a completed task. I wanted to write up my daily planning including tasks in Bear, but I use Things 3 as my task manager. So I wanted an easy way of extracting those notes and adding them to Things 3 so I could prioritise/follow up on them.

Unfortunately, Applescript dictionaries have fallen out of favour in modern (i.e. Post-iOS) Mac apps, so the process of getting the data out of Bear via automation wasn't immediately obvious. Fortunately, Bear stores your notes in an un-encrypted SQLite database (the default for Core Data), so we can solve this with programming :)

Using Shaune Kane's Bear backup gist as inspiration: https://gist.github.com/shaunkane/6b21e48e5bbd54f76806f0a13f19e79a, this gist is a script that queries the Bear SQLite data store, gra