Skip to content

Instantly share code, notes, and snippets.

@dgreen
dgreen / obsidian-web-clipper.js
Last active September 18, 2023 16:11 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "VaultV2";
/* Optional folder name such as "Clippings/" */
@dgreen
dgreen / Support Note.scpt
Last active May 7, 2019 03:23 — forked from csreed/Support Note.scpt
Create a project support note in Evernote. The note will be cross-referenced with the task/project in OmniFocus.
(*
Opens the support note for an OmniFocus task/project in Evernote. Creates the note if necessary, linking the note back to the task/project.
NB: If you set this up by hand, the evernote:/// URL in OmniFocus needs to be enclosed in <> for the script to find it.
Put this script in ~/Library/Application Scripts/com.omnigroup.omnifocus2. Then you can add the script as a custom toolbar item.
version 1.0: Initial release
*)
@dgreen
dgreen / Drop Action.scpt
Last active November 4, 2018 05:31 — forked from cdzombak/Drop Action.scpt
OmniFocus AppleScript to move an action to my "❌ Dropped" context and mark it completed.
-- Drop an action
-- Mark it "Complete" and add front tag of "❌ Dropped"
--
tell application "OmniFocus"
tell front document
try
set droppedTag to first tag where its name contains "Dropped"
on error
display alert "No tag found whose name ends with “" & "Dropped”"
return
@dgreen
dgreen / rtftomarkdown.rb
Created October 11, 2012 04:43 — forked from ttscoff/rtftomarkdown.rb
Convert RTF/DOC files to Markdown via Textutil
#!/usr/bin/ruby
# Uses textutil, available on Mac only (installed by default)
# Usage: rtftomarkdown.rb FILENAME.rtf
# Outputs to STDOUT
if ARGV.length == 0
puts "#{__FILE__} expects an RTF input file as an argument"
exit
end
@dgreen
dgreen / Default (OSX).sublime-keymap
Created August 11, 2012 06:02 — forked from FichteFoll/prettify_markdown_table.py
Plugin for Sublime Text 2 that "prettifies" MultiMarkdown tables and aligns their vertical separators
[
{
"keys": ["ctrl+k"], "command": "prettify_markdown_table"
}
]