Skip to content

Instantly share code, notes, and snippets.

Avatar

Joschua selfire1

View GitHub Profile
@selfire1
selfire1 / release.yml
Created Nov 3, 2021
Github Action to automate Obsidian releases. Source: [Release your plugin with GitHub Actions | Obsidian Plugin Developer Docs](https://marcus.se.net/obsidian-plugin-docs/publishing/release-your-plugin-with-github-actions)
View release.yml
name: Release Obsidian plugin
on:
push:
tags:
- "*"
env:
PLUGIN_NAME: FINDME # Change this to match the id of your plugin.
@selfire1
selfire1 / Copy to clipboard.md
Created Jul 20, 2021
Template for the Templater Obsidian plugin to copy current Obsidian note as markdown link
View Copy to clipboard.md

<%* const title = tp.file.title; const uri = 'obsidian://open?vault=Vault&file=' + encodeURI(title);

const fullstring = '[' + title + ']' + '(' + uri + ')' navigator.clipboard.writeText(fullstring); %>

@selfire1
selfire1 / marvin-toggl-tracking.sh
Created Jun 17, 2021
A shell script to start tracking an Amazing Marvin task in Toggl Track.
View marvin-toggl-tracking.sh
#!/bin/bash
# -------------------------------------------------
# Before running the script, make sure that you understand it. Running code you find on the Internet may damage your system.
# -------------------------------------------------
# In Amazing marvin, set the path to this script as "Start time tracking task" in the "System Triggers strategy" like this:
# /Path/to/this/script $TASK_TITLE
# Replace "YourSecretToken" with your Toggl API token below.
# -------------------------------------------------
curl -v -u YourSecretToken:api_token \
@selfire1
selfire1 / bibleverse-formatting.css
Created May 26, 2021
bibleverse-formatting.css
View bibleverse-formatting.css
/* Formatting for Bible verses (h6 headers) in Obsidian */
.markdown-preview-view h6,
.cc-pretty-preview .markdown-preview-view h6
{
position: relative;
left: -4%;
top: 18px;
line-height: 0px;
margin-top: -20px;
margin-right: 3px;