Skip to content

Instantly share code, notes, and snippets.

@cuellarfr
cuellarfr / Markdown Preview.@M.sh
Last active January 30, 2026 18:45
A script for CotEditor that launches a Markdown preview in your default browser
#!/bin/bash
#%%%{CotEditorXInput=AllText}%%%
#%%%{CotEditorXOutput=None}%%%
INPUT=$(/opt/homebrew/bin/cmark)
TMPFILE="/tmp/md-preview-$$.html"
cat > "$TMPFILE" << 'EOF'
<html><head>
<style>
@cuellarfr
cuellarfr / feeds.opml
Created December 11, 2025 18:56
Personal RSS feed collection
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>Miniflux</title>
<dateCreated>Sun, 30 Nov 2025 07:47:50 UTC</dateCreated>
</head>
<body>
<outline text="design">
<outline title="A List Apart: The Full Feed" text="A List Apart: The Full Feed" xmlUrl="https://alistapart.com/main/feed" htmlUrl="https://alistapart.com/" type="rss"></outline>
<outline title="Baymard Institute" text="Baymard Institute" xmlUrl="https://feeds.baymard.com/baymard" htmlUrl="https://baymard.com/" type="rss"></outline>
@cuellarfr
cuellarfr / add_link.js
Last active May 26, 2025 20:57
Bookmarklet that copies a website url, title and other metadata like keywords, summary and reading time
@cuellarfr
cuellarfr / concat.txt
Created July 17, 2016 00:27
Combine video files using FFmpeg
ffmpeg -f concat -i <(for f in $PWD/*.avi;do echo "file '$f'";done) -c copy output.avi