Skip to content

Instantly share code, notes, and snippets.

View serpro69's full-sized avatar
🍡
breaking things when they work, so I can fix them later

Særgeir serpro69

🍡
breaking things when they work, so I can fix them later
View GitHub Profile
@serpro69
serpro69 / Readme.md
Created August 22, 2022 19:09 — forked from zsviczian/Readme.md
My YouTube Workflow in Obsidian with Templater, Kanban, and Excalidraw

Please watch this video to understand how to use this script: https://youtu.be/qDSHBnl83r8 The Gist contains 3 files

  • YouTube-create.md is the main Templater script
  • YouTube-Thumbnail.md and YouTube-Storyboard.md are two Excalidraw template files.

To download the files and add to your Obsidian Vault select Download ZIP at the top of the page, or switch to Raw view for each file and copy/paste the contents into Obsidian.

⚠⚠⚠ ATTENTION ⚠⚠⚠ Since releasing the video I realized that adding Templater script tags to text elements will only work if there is no linebreak in the text. Thus you are probably better off with the solution now included in this Gist, where I apply the same <% "---" %> trick to YouTube-Thumbnail.md as I do in YouTube-Storyboard.md as explained in the video. If you need to debug script tags, be sure to look for "text": "<%tp.file.folder()%>" in the JSON block and make sure it is not "text": "<%tp.file.folder()\n%>", or anything similar.

@serpro69
serpro69 / meeting-note.md
Created August 22, 2022 19:08 — forked from zsviczian/meeting-note.md
Daily note taking scripts

<%* /*

*/
const view = app.workspace.activeLeaf.view;
const editor = view.editor;
const curLineNum = editor.getCursor().line;
const curLineText = editor.getLine(curLineNum);
const title = tp.file.title;
const today = title.match(/\d{4}\-\d{2}\-\d{2} .+/) //are we on the DNP?
@serpro69
serpro69 / obsidian.templater.quick-capture.js
Created August 22, 2022 19:07 — forked from GitMurf/obsidian.templater.quick-capture.js
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)
@serpro69
serpro69 / obsidian.templater.create-and-copy-block-ref-id.js
Created August 22, 2022 19:06 — forked from GitMurf/obsidian.templater.create-and-copy-block-ref-id.js
Credit to: @shabegom - Add a block ref to the current line by adding a ^uniqueId on the end and copying to the clipboard the embed reference link so you can quickly paste the block ref somewhere else in your vault. Similar to Roam ctrl + click and drag to create block ref.
<%*
//v1.1: Changed to using the new "view.editor" instead of deprecated "view.sourceMode.cmEditor"
let cmEditorAct = this.app.workspace.activeLeaf.view.editor;
let curLine = cmEditorAct.getCursor().line;
cmEditorAct.setSelection({ line: curLine, ch: 0 }, { line: curLine, ch: 9999 });
function createBlockHash() {
let result = '';
var characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
@serpro69
serpro69 / go-build.sh
Created May 4, 2022 10:50 — forked from sivel/go-build.sh
Ansible Binary Golang Module
go build helloworld.go
GOOS=windows GOARCH=amd64 go build helloworld.go
@serpro69
serpro69 / minimal-cards-primary
Created April 23, 2022 10:55 — forked from Signynt/primary-cards.css
Minimal Cards snippet with tweaks for Primary theme
/* Cards snippet for Obsidian
author: @kepano
version: 1.1.0
Support my work:
https://github.com/sponsors/kepano */
:root {
--cards-min-width:180px;
--cards-max-width:1fr;
--cards-mobile-width:120px;
@serpro69
serpro69 / Example Lecture Note.md
Created April 23, 2022 10:55 — forked from Signynt/Example Lecture Note.md
Notes for Hub with Dataview queries
title allDay startTime endTime date
Pathologie Vorlesung
false
29700
35100
2022-04-05

[!info]+

  • type:: Vorlesung
@serpro69
serpro69 / fzf-config.fish
Created January 25, 2022 21:21 — forked from max-sixty/fzf-config.fish
Fish fzf settings & functions
## FZF settings & functions for fish; collected with attribution and modified.
# These rely on `git lg`; from git's config:
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
# They also rely on the following being installed:
# - bat
# - choose
# - delta
# - exa
# - fd
@serpro69
serpro69 / gist:a2b29678eea0be134e1d79a6c15b3c3b
Created October 27, 2021 17:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: