Skip to content

Instantly share code, notes, and snippets.

@Coldaine
Coldaine / ultimate-hybrid-clipper.json
Created January 1, 2026 07:02
Obsidian Web Clipper - Ultimate Hybrid Template (v2). Combines best prompt engineering from Omni-Protocol with full Web Clipper ecosystem: polymorphic sections, adversarial critique, analogy generation, optimized context, 15 frontmatter properties, and proper filter chains.
{
"schemaVersion": "0.1.0",
"name": "Ultimate Hybrid Clipper v2",
"behavior": "create",
"noteContentFormat": "text",
"context": "{{selectorHtml:article,main,.post-content,.entry-content,#content,.content|strip_tags:script,style,nav,footer,aside,header,.sidebar,.comments,.advertisement|strip_attr:class,id,style,data-*}}",
"properties": [
{
"name": "url",
"value": "{{url}}"
@pickleton89
pickleton89 / Prompt-for-Obsidian-Web-Clipper-Chatgp-Project.md
Last active January 28, 2026 00:34
This gist contains a LLM prompt to assist a user in using, troubleshooting, and developing templates for the Obsidian Web Clipper

🧠 SYSTEM: Obsidian Web Clipper Assistant

🎯 IDENTITY & ROLE
You are an expert assistant for the Obsidian Web Clipper plugin, specializing in:

  • Explaining plugin functionality (clipping behavior, YAML structure, field types, etc.)
  • Creating, validating, and improving custom JSON templates
  • Supporting the user in designing and debugging efficient clipper workflows and templates

You operate with high technical precision, prioritize usability, and maintain clarity when assisting with templating tasks.

@kepano
kepano / obsidian-web-clipper.js
Last active January 27, 2026 07:45
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/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@trapexit
trapexit / yt-dl
Created August 24, 2019 15:53
youtube-dl setup for archiving
#!/bin/bash
if [ "${1}" == "-d" ]; then
ARCHIVE="--download-archive ${2}"
shift
shift
fi
youtube-dl \
${ARCHIVE} \
# Lines starting with # are comments
--ignore-errors
# --socket-timeout SECONDS
--socket-timeout 60
--retries 8
--output "%(uploader)s/[%(playlist_id)s] %(playlist)s/%(playlist_index)s %(upload_date)s [%(id)s] - %(title)s.%(ext)s"
@paulmallon
paulmallon / Windows 10 post install script
Last active July 5, 2024 00:02
Post windows 10 install script to fix UI stuff and privacy settings.
Windows 10 post install script
Please see post_install_part1.ps1 and post_install_part2.ps1 for details
Part 1 - Fix Privacy, Explorer, Logon and misc windows settings
----------------------------------------------------------------------------------------------------------
Disable-UAC
Disable-UpdateRestart
Disable-Autoplay
@thehig
thehig / screenshots.spec.js
Created September 19, 2018 12:33
js: Storyshots with multiple device/viewport puppeteer screenshots
import path from 'path';
import fs from 'fs';
import initStoryshots from '@storybook/addon-storyshots';
import { imageSnapshot } from './storyshots-puppeteer';
import devices from 'puppeteer/DeviceDescriptors';
// Store the screenshots outside the source folder to prevent jest from 'watching' them.
// Since they're outside the src directory we nav to them relatively
const ROOTDIR = path.join(__dirname, '../../../');
@SeriouslyMoe
SeriouslyMoe / fb2k-scripts.md
Last active March 18, 2019 12:20
foobar2000 Scripts

Foobar2000 scripts

Personal scripts deviating from the defaults provided by foobar2000 out of the box. Curated for my own directory setup and tags, but feel free to use.

Window Title

Playing: ▶ Catch Us by Odyssey (feat. Mortimer)

Paused: Various Artists | foobar2000

@glasslion
glasslion / vtt2text.py
Last active November 5, 2025 04:14
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; This should be replaced by whatever your native language is. See
; http://msdn.microsoft.com/en-us/library/dd318693%28v=vs.85%29.aspx
; for the language identifiers list.
ru := DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 1)