Skip to content

Instantly share code, notes, and snippets.

View programwitch's full-sized avatar

K. Latham programwitch

View GitHub Profile
@programwitch
programwitch / dailynotesarchive.bat
Created August 10, 2023 19:33
Batch file to move Obsidian Daily Notes to an archive folder (Year Month Subfolders)
@ECHO OFF
SETLOCAL
SET "sourcedir=(Obsidian Vault Folder Path)\Daily Notes"
SET "destdir=(Obsidian Vault Folder Path)\Daily Notes\Archive"
FOR /F "tokens=2-4 delims=/:. " %%J IN ("%date%") DO SET dateStamp=%%L-%%J
ECHO "Skip For %dateStamp%"
FOR /f "delims=" %%a IN (
'dir /b /a-d "%sourcedir%\*.md" '
) DO (
FOR /f "tokens=1,2delims=-" %%b IN ("%%a") DO (

Keybase proof

I hereby claim:

  • I am programwitch on github.
  • I am programwitch (https://keybase.io/programwitch) on keybase.
  • I have a public key ASBTRVzkhvLcll-Fnvt_sJIDGS_TBhuccIu9S1ylo_g6jgo

To claim this, I am signing this object:

@programwitch
programwitch / GetGooglePlus.aspx.vb
Created June 8, 2012 16:37
A quick asp.net(vb) sketch to display your public Google+ posts in a Twitter widget like fashion
' A quickly put together sketch to display your public Google+ posts
' in a Twitter widget like fashion.
' Info: http://programwitch.com/blog.aspx?id=2783
' Used asp.net(vb) to build and test.
' You'll need a Google+ account, a Google API Key, and Json.Net to use this.
' Ref: https://developers.google.com/+/api/latest/activities/list
' Ref: http://json.codeplex.com/
Public Sub GetGooglePlus()
Dim post_title As String