Skip to content

Instantly share code, notes, and snippets.

View goshatch's full-sized avatar
🏴‍☠️
Arrr

Gosha Tcherednitchenko goshatch

🏴‍☠️
Arrr
View GitHub Profile
@goshatch
goshatch / org-roam-on-this-day.el
Created August 19, 2023 21:02
Links to org-roam dailies from this day in previous years
(defun gt/org-roam-on-this-day ()
"Return a list of links to org-roam daily notes from this day in previous
years, or NIL if none are found."
(require 'org-roam)
(let* ((query "SELECT id, title FROM nodes WHERE file LIKE '%%daily%%' AND file LIKE '%%' || strftime('%%y-%%d', 'now') || '%%' ORDER BY title DESC")
(rows (org-roam-db-query query))
(result "On this day: "))
(if (null rows)
nil
(progn
@goshatch
goshatch / weeklyreview.el
Created August 16, 2021 10:24
Create a weekly review note from hotkey
(defvar gt/weekly-review-capture-template
`(("d" "default" entry
"* %?"
:if-new (file+head
"%<%Y-%m-%d>-weekly-review.org"
"%[~/org/roam/templates/weekly-review-template.org]"))))
(defun gt/weekly-review-capture (&optional no-visit)
"Create a weekly review note from the appropriate template"
(interactive)
@goshatch
goshatch / jiraToThingsBookmarklet.js
Last active March 21, 2024 21:18
A bookmarklet for sending a Jira issue to Things 3
/*
Create a task in Things 3 from a Jira ticket using the Things URL scheme (https://culturedcode.com/things/support/articles/2803573/)
Use this code to generate a bookmarklet with https://caiorss.github.io/bookmarklet-maker/
Based on @keram's Jira to Notion bookmarklet.
*/
var project = 'Indeed Flex';
var heading = 'Daily work';
var checklistItems = [
'Move to In Progress',