vault backup: 2026-02-05 07:18:20

This commit is contained in:
2026-02-05 07:18:20 -05:00
parent 117edb3767
commit 03892f219b
26 changed files with 532 additions and 333 deletions
-87
View File
@@ -10,90 +10,3 @@ tags:
dg-publish: true
---
# 2026-02-02
## 2026-02-02 06:50
I'm considering including management scripts in this vault,
but I'd generally prefer to keep it content only.
Ideally I could do anything I'd use a script for with a plugin,
but they have their limitations.
Eventually I should [[learn-to-write-obsidian-plugins]],
but for now here's a useful cmdlet I wrote a while ago but misplaced.
```powershell
function Import-Markdown {
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[string]$Path
)
try {
$command = Get-Command ConvertFrom-Yaml -ErrorAction "Stop"
}
catch {
throw "no YAML conversion module installed. Try ``Install-Module powershell-yaml``."
}
$content = Get-Content -Path $Path -Raw
$pattern = [Regex]'(?ms)^---\s*(.*?)\s*---\s*(.*)$'
$match = $pattern.Match($content)
if ($match.Success) {
$frontmatter = $match.Groups[1].Value
$body = $match.Groups[2].Value
}
else {
$frontmatter = ''
$body = $content
}
return [pscustomobject]@{
frontmatter = $frontmatter | ConvertFrom-Yaml
body = $body
}
}
```
That match expression is bizarre,
and the whole thing needs better error handling,
but it works.
A `Where-Markdown` for filtering by tags
and a `{Verb}-Markdown` for modifying tags
would be idiomatic.
## 2026-02-02 12:18
### Sleeving Takeoff Breakdown Direction
Updated [[sleeving-takeoff#Breakdowns]]
per clarification with Joel.
Previous direction below.
> * `Area` = "01 - Feeders/Risers ..."
> * `Phase` = "Feeders"
> * `System` = "FRR - Feeders and Risers"
>
> For all sleeving, regardless of application.
I feel certain I received this from someone I trust
because I've been doing it against my better judgement,
but either it wasn't Joel (Ben maybe?)
or he was referring to a different scenario
(which my notes no longer cover).
***
I asked Joel if he could think of any direction
that I might have misinterpreted
to get to that above,
but he said he could not.
***
I spoke with Willie about it,
he says he's always put sleeving in each relevant system.
I told him I knew it had to have been spoken
because I remember it being justified as WBS allocation thing,
but I think now Joel told me correctly at the time,
that is, gave me the same direction he gave me today,
I just somehow heard the complete opposite.