Skip to content

Instantly share code, notes, and snippets.

View ScriptAutomate's full-sized avatar
:shipit:
Automating All The Things

Derek Ardolf ScriptAutomate

:shipit:
Automating All The Things
View GitHub Profile
@ScriptAutomate
ScriptAutomate / output-example.log
Last active March 23, 2023 21:45
Test OpenAPI Whisper: Record and Transcribe via Terminal
[00:00.000 --> 00:17.320] I'm currently testing Whisper on my desktop as a way to eventually share with the linking
[00:17.320 --> 00:20.080] your thinking community.
[00:20.080 --> 00:28.720] This is just a way to show different timestamps and general display ability and seeing how
[00:28.720 --> 00:34.000] this could look as an easy note taking solution.
[00:34.000 --> 00:38.240] I for one think this is a rather cool piece of software that I could simply run from my
[00:38.240 --> 00:40.960] terminal of my Linux desktop.
@ScriptAutomate
ScriptAutomate / dendron.yml
Last active November 23, 2022 06:58
Preferred way of working with multi-vault, self contained vault workflows. Inlcudes explanation of multi-vault layout with self contained vaults.
dev:
enablePreviewV2: true
# Ensure selfcontainedvaults enabled
enableSelfContainedVaults: true
enableExportPodV2: true
commands:
lookup:
note:
# Enables vaultSelectionModeOnCreate
# https://wiki.dendron.so/notes/F9LWJEjscrGkxnYi2JNby/#confirmvaultoncreate
@ScriptAutomate
ScriptAutomate / markdown.json
Last active June 13, 2022 15:05
Dendron Snippet: Insert Timestamp (good for interstitial journaling)
{
"g.time": {
"prefix": "-t",
"body": [
"- $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE: "
],
"description": "Insert timestamp. Good for interstitial journaling."
}
}
@ScriptAutomate
ScriptAutomate / wiki-to-dendron.py
Last active March 22, 2022 19:33
Basic Python script for downloading a Wiki article and converting to a Dendron note
from datetime import datetime
# Requires third-party Python packages
# pip install mediawiki
# pip install shortuuid
from mediawiki import MediaWiki
import shortuuid
@ScriptAutomate
ScriptAutomate / dropdown.md
Created February 17, 2022 17:28 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@ScriptAutomate
ScriptAutomate / ConvertTo-Markdown.ps1
Last active February 9, 2022 15:40 — forked from Matticusau/ConvertTo-Markdown.ps1
ConvertTo-Markdown
Function ConvertTo-Markdown {
<#
.Synopsis
Converts a PowerShell object to a Markdown table.
.Description
Converts a PowerShell object to a Markdown table.
.Parameter InputObject
PowerShell object to be converted
.Example
ConvertTo-Markdown -InputObject (Get-Service)
@ScriptAutomate
ScriptAutomate / .gitlab-ci.yml
Last active February 9, 2022 22:48
GitLab CI Publishing Dendron Proof-Of-Concept
---
stages:
- build-docs
- publish-docs
build-docs-html:
stage: build-docs
image: node:lts-bullseye
# Cache modules using lock file
cache:
@ScriptAutomate
ScriptAutomate / Out-FileUtf8NoBom.ps1
Last active February 3, 2022 18:03 — forked from mklement0/Out-FileUtf8NoBom.ps1
PowerShell function that emulates Out-File for creating UTF-8-encoded files *without a BOM* (byte-order mark).
<#
Prerequisites: PowerShell version 3 or above.
License: MIT
Author: Michael Klement <mklement0@gmail.com>
#>
function Out-FileUtf8NoBom {
<#
.SYNOPSIS
Outputs to a UTF-8-encoded file *without a BOM* (byte-order mark).
@ScriptAutomate
ScriptAutomate / scratch.schema.yml
Created February 3, 2022 02:54
Dendron Schema for applying templates to scratch notes
version: 1
schemas:
# Daily is the top most schema since its parent is 'root' it must have an identifier
# this identifier 'daily' will be used when using 'Lookup (schema)' command.
- id: scratch
parent: root
title: scratch
desc: ""
# Children of the top most schema do not need to contain identifier and just
# require a 'pattern' to be set to match the hierarchy of notes.
@ScriptAutomate
ScriptAutomate / settings.json
Created January 4, 2022 17:47
Simple VS Code customization (in settings.json) to change heading colors and section folding shading. Makes reading markdown heck of a lot easier.
"workbench.colorCustomizations": {
"editor.foldBackground": "#f6f7d6"
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#0111a1",
"fontStyle": "bold",