Skip to content

Instantly share code, notes, and snippets.

View endquote's full-sized avatar

Josh Santangelo endquote

View GitHub Profile
@endquote
endquote / obsidian-tasks-things.md
Last active March 19, 2025 01:44
Querying Obsidian Tasks and grouping them similarly to Things

TQ_extra_instructions: |-

/foo/foo.md or /foo.md

((path regex matches /([^/]+)/\1.md$/) OR (path regex matches /^[^/]+.md$/))

/[select]/[select].md or /Inbox.md

((root includes {{query.file.property("select_include")}}) OR (filename includes Inbox)) TQ_explain: false TQ_show_task_count: false TQ_show_postpone_button: false TQ_show_start_date: true

@endquote
endquote / migrate.js
Last active March 2, 2017 15:29
Migrate private repositories from your GitHub organization to your Bitbucket team.
/*
To use:
* save this script as migrate.js
* fill in the user/pass variables at the top
* save the block of json below as package.json right next to it
* install node.js from nodejs.org
* run 'npm install' from the directory where you saved the files
* run 'node migrate.js'
* profit
@endquote
endquote / instagram.js
Last active December 11, 2015 07:43
Keyboard navigation for Instagram timeline
/*
A userscript to add keyboard shortcuts to the Instagram timeline:
- J or space to go to next image
- K to go to previous image
- L to toggle like on the current image
- N to load new posts
*/
$(document.body).keypress(function(event) {
// ignore keypresses in comment fields