Skip to content

Instantly share code, notes, and snippets.

View yfr's full-sized avatar

Frank Mecklenburg yfr

  • Your Friendly Robot
  • Hamburg
View GitHub Profile
@yfr
yfr / obsidian-web-clipper.js
Last active January 27, 2022 08:46 — 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 = "";
/* Optional folder name such as "Clippings/" */
#!/bin/sh
git branch --merged
echo
read -p "Do you want to delete these branches? [y|n]" -n 1 confirmation
echo
case "$confirmation" in
n|N) exit 0;;
#!/bin/sh
git stash list
echo
read -p "Do you want to drop all these stashes? [y|n]" -n 1 confirmation
echo
case "$confirmation" in
n|N) exit 0;;