Skip to content

Instantly share code, notes, and snippets.

View lguenth's full-sized avatar
👨‍🎓

Luke lguenth

👨‍🎓
View GitHub Profile
@lguenth
lguenth / ffmpeg-split-into-5min-chunks.sh
Created March 9, 2024 16:00
Script for ffmpeg: Splits media files with the given extension into 5 minute chunks
#!/bin/bash
# Check if the number of arguments is less than 1
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <input_folder> <extension>"
exit 1
fi
# Path to the folder containing the files
input_folder="$1"
@lguenth
lguenth / download-obsidian.sh
Created November 3, 2022 16:05
Get latest Obsidian AppImage
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest \
| grep browser_download_url \
| grep AppImage \
| grep -v arm \
| cut -d '"' -f 4)
curl -L -o ~/.local/bin/obsidian "$DOWNLOAD_URL" && chmod +x ~/.local/bin/obsidian
@lguenth
lguenth / Weekly Template.md
Created September 7, 2022 19:03
Weekly Note Template
tags
dated/weekly

Week <% tp.date.weekday("WW", 0, tp.file.title, "YYYY-[W]WW") %> (<% tp.date.weekday("DD.MM.", 0, tp.file.title, "YYYY-[W]WW") %> - <% tp.date.weekday("DD.MM.", 6, tp.file.title, "YYYY-[W]WW") %>)

Monday (<% tp.date.weekday("DD.MM.", 0, tp.file.title, "YYYY-[W]WW") %>)

not done
happens &lt;% tp.date.weekday("YYYY-MM-DD", 0, tp.file.title, "YYYY-[W]WW") %&gt;
@lguenth
lguenth / Zotero Highlights Template Without Templater.md
Last active March 2, 2024 09:02
Zotero Integration Templates
created modified
{"importDate|format(\"YYYY-MM-DD\")"=>nil}
{"importDate|format(\"YYYY-MM-DD\")"=>nil}

{{shortTitle|replace(":", " –")}}

Quelle: [[@{{citekey}}]]

{% if annotations.length > 0 -%} Hinzugefügt am [[{{importDate | format("YYYY-MM")}}#{{importDate | format("YYYY-MM-DD")}}]]

@lguenth
lguenth / NTNDS Daily Note Example Template
Last active April 27, 2023 14:37 — forked from pamela-drouin/Obsidian+Templater_DN+NTNDS.txt
Templater template: Daily notes with NTNDS
---
creation date: <% tp.file.creation_date() %>
modification date: <% tp.file.last_modified_date("YYYY-MM-DD HH:mm:ss") %>
---
# 💻 Logbook: <% tp.file.title %>
- Intent: 🎋
- `summary of today's focus/intent`
- Log→ 🧮
- [ ] `tiny todos`

Readwise Settings

File name

{{title|replace('.','')|replace('&','and')|replace(',','')|replace('•','')|replace('.','')|replace('"','')|replace('','')|replace(':','–')|replace('/','')|replace('*','')|replace('=','equals')|replace('|','')|replace('[','')|replace(']','')|replace('#','')|replace('%','')|replace('----','')|replace('---','')|replace('--','–')|replace('@', '')}}

Page title

# {{full_title if category!="tweets" else author|replace("on Twitter", "")|replace("@", "")}}