Skip to content

Instantly share code, notes, and snippets.

@kvnxiao
kvnxiao / awesome-selfhosted-sorted-by-stars.md
Last active July 25, 2026 21:01
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@zsviczian
zsviczian / DNP.md
Created March 1, 2026 13:25
Daily Mindmap Obsidian Templater Template
excalidraw-plugin parsed
excalidraw-onload-script setTimeout(async()=>{let mmb=window.MindMapBuilderAPI;if(!mmb){await sleep(500);const cmd=Object.keys(app.commands.commands).find((k)=>/.*Mindmap Builder$/.test(k));if(!cmd)return;if(!app.commands.commands[cmd].checkCallback(false))return;await sleep(500);mmb=window.MindMapBuilderAPI;if(!mmb)return;}await mmb.setInputFieldDockStatus({isDocked:false});mmb.performAction(mmb.Actions.FOCUS);},100)

<%* /*

const td=moment(tp.file.title.substr(0,10)); //my DNP filename format is "YYYY-MM-DD dddd"
tR += "Yesterday:: [[Daily Notes/" +
      td.add(-1,'d').format("YYYY-MM-DD dddd") +
@zsviczian
zsviczian / callout.css
Created September 10, 2025 08:42
Obsidian custom callouts
.callout[data-callout="todo"] {
--callout-color: 230, 20, 10;
--callout-icon: lucide-lightbulb;
}
.callout[data-callout="interesting"] {
--callout-color: 245, 209, 10;
--callout-icon: lucide-lightbulb;
}
@zsviczian
zsviczian / BulkExport.js
Last active July 25, 2026 20:58
Build a Searchable Icon Library in Obsidian With Bases
ea = ExcalidrawAutomate;
async function run() {
const files = app.vault.getMarkdownFiles().filter(f=>ea.isExcalidrawFile(f) && f.name.match(/^(?:icon|stickfigure|logo) - /i));
let workingLeaf = app.workspace.getLeaf(true);
//let i = 0; //uncomment this and if statment later for limited debugging.
for (excalidrawFile of files) {
//if(i++>5) continue;
await workingLeaf.openFile(excalidrawFile);
await sleep(200);
@zsviczian
zsviczian / DNP.md
Last active July 25, 2026 20:58
Excalidraw Scripting - Daily Quote Illustrations in Obsidian with Templater, Excalidraw and OpenAI

<%* const ea = ExcalidrawAutomate; const imageSize = 1024x1024; const instruction = "Return a single message with the generated image prompt in a codeblock"; const systemPrompt = "Your task involves transforming a user-provided quote into a detailed and imaginative illustration. Craft a visual representation that captures the essence of the quote and resonates well with a broad audience. Additionally, provide preferences for styling, such as the chosen medium and artistic direction, to guide the image creation process. Ensure the resulting image remains text-free. Your task output should comprise a descriptive and detailed narrative aimed at facilitating the creation of a captivating illustration from the quote.";

//--------------------------------------- //Get Quote from stoic quotes //--------------------------------------- const quoteString = await request({url: "https://stoic-quotes.com/api/quote"});

@zsviczian
zsviczian / publish.css
Last active July 25, 2026 20:58
Excalidraw Obsidian Publish Support
@font-face {font-family: "Virgil";src: url("https://excalidraw.com/Virgil.woff2");}
@font-face {font-family: "Cascadia";src: url("https://excalidraw.com/Cascadia.woff2");}
@font-face {font-family: "Assistant";src: url("https://excalidraw.com/Assistant-Regular.woff2");}
div.markdown-embed-title {
display: none;
}
div.markdown-embed {
border: none;
@zsviczian
zsviczian / Readme
Created November 9, 2023 21:40
ExcalidrawAutomate onFileOpenHook
https://youtu.be/OX5_UYjXEvc
![Thumbnail - 20231109 Excalidraw on-load script (Custom)](https://github.com/zsviczian/obsidian-excalidraw-plugin/assets/14358394/8d741faf-9ce6-4d83-bb7a-fdc887a30918)
@zsviczian
zsviczian / Excalidraw Dynamic Styling.md
Last active July 25, 2026 20:57
Excalidraw Dynamic Styling
@zsviczian
zsviczian / Icon Library Script.md
Last active July 25, 2026 20:56
Excalidraw Icon Library

/*

const FILENAME_FILTER = /^icon -/i;
const KEYWORD_GRABBER = /(?:icon -)?([^-]*)-?/i;
const COLS = 30;
const LOCK_ICONS = true;
const HEIGHT = 180;
const WIDTH = 180;
const TEXTHEIGHT = 40;
const PADDING = 50;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 25, 2026 20:55
A badass list of frontend development resources I collected over time.