Skip to content

Instantly share code, notes, and snippets.

@FTWynn
FTWynn / a_interstitial_journal.md
Last active February 13, 2023 13:09
Shamelessly stolen from chhoumann/Templater_Templates, but trimmed down to fit the simple case of appending an Interstitial Journal to the Daily Note

<%* var now_time = tp.date.now("HH:mm"); var input = await tp.system.prompt(now_time + " - Interstitial Journal"); if (input == null) { return; } input = "- " + now_time + " - " + input; var filePath = tp.date.now("YYYY-MM-DD") + ".md"; console.log(filePath); if (await app.vault.adapter.exists(filePath)) { const file = await app.vault.getAbstractFileByPath(filePath); console.log(file);

---
title: "CICD for Hugo: Speeding up the Static Site Flow"
date: 2017-11-25T12:15:21-08:00
categories: ["article"]
type: "articles"
author: "David Wynn"
lastmod: 2017-12-15T07:47:21-08:00
---
As I was putting this site together, I realized there were some boilerplate workflows I wanted to improve.

Keybase proof

I hereby claim:

  • I am ftwynn on github.
  • I am ftwynn (https://keybase.io/ftwynn) on keybase.
  • I have a public key ASAKeUW470tNAgQb1M2e6Rv_0KLLqJl9dDldiIVhi57EOwo

To claim this, I am signing this object:

@FTWynn
FTWynn / styles.less
Created July 29, 2015 05:18
Atom style for colorized lists
// ================== List Color Hierarchy ==================
atom-text-editor::shadow {
span.variable.list.gfm { color: @ui-site-color-1; }
span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-2; }
span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-3; }
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-4; }
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-5; }
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-1; }
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-2; }
@FTWynn
FTWynn / gist:2484561
Created April 24, 2012 23:28
TB No DE Activity Report
DECLARE @DaysBackToCheck INT
SET @DaysBackToCheck = 7
-- List of users with recent activity
WITH RecentUsers AS (
SELECT u.UserID, u.UserName, u.Name, MAX(l.Created) AS LastTBUseDate
FROM LOGS l
INNER JOIN LOG_TYPES lt ON l.LogTypeID = lt.LogTypeID
INNER JOIN USERS u ON u.UserID = l.TimekeeperID
WHERE lt.ParentLogTypeID = 1
AND l.Created > DATEADD(day, -@DaysBackToCheck , GETUTCDATE())