From b4d021b22a90ffcc791c7b11e4c2d936ace5b031 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 26 Mar 2024 07:59:50 -0500 Subject: [PATCH] Combine tips with blog Still should 301 the old URLs or something --- config.yaml | 10 +++++----- content/_index.md | 17 ++++++++++------- content/{tips => blog}/go-mod-proxy.md | 4 +++- content/{tips => blog}/iex-dbg-pry.md | 4 +++- content/blog/restic-backups.md | 20 ++++++++------------ content/tips/_index.md | 5 ----- layouts/index.html | 14 -------------- 7 files changed, 29 insertions(+), 45 deletions(-) rename content/{tips => blog}/go-mod-proxy.md (97%) rename content/{tips => blog}/iex-dbg-pry.md (96%) delete mode 100644 content/tips/_index.md diff --git a/config.yaml b/config.yaml index dbc0dac..620c9b1 100644 --- a/config.yaml +++ b/config.yaml @@ -19,7 +19,7 @@ markup: # post: /blog/:title params: - Description: "Hi! I'm Daniel. I live in Kansas City where I help run a small Christian church, raise two kids with my awesome wife, and write software for Divvy." + Description: "Hi! I'm Daniel. I live in Kansas City where I help run a small Christian church, raise three boys with my awesome wife, and write software." outputs: home: [html] @@ -35,10 +35,10 @@ menu: name: blog url: /blog/ weight: 20 - - identifier: tips - name: tips - url: /tips/ - weight: 30 + # - identifier: tips + # name: tips + # url: /tips/ + # weight: 30 - identifier: contact name: contact url: /contact/ diff --git a/content/_index.md b/content/_index.md index a7a3e06..7aa2450 100644 --- a/content/_index.md +++ b/content/_index.md @@ -7,19 +7,22 @@ I live in Kansas City where I help run a small Christian church, raise two kids +href="https://kcrising.church">a small Christian church, raise three boys with my awesome wife, and write -software for Divvy. +software for Divvy (bought by +Bill.com). -I run a ton of self-hosted software here at home on some machines that sit on +I run a lot of self-hosted software here at home on some machines that sit on [an unnecessarily large server rack in my basement][rack]. I love building [keyboards][kb], too. [I heavily customize my workflow][wf] and you can -sift through my [dotfiles][df] if you like. +see how I set everything up with [Nix][nix] if you like (or even my old +[dotfiles](df)). -Occasionally, I post technical articles here. +Occasionally, I post technical articles (of varying length and complexity) here. -[rack]: //files.lyte.dev/images/server-rack.jpg +[rack]: //files.lyte.dev/images/server-rack-angle-2023-07.jpg [kb]: //files.lyte.dev/keyboards -[wf]: //files.lyte.dev/images/desktop-screenshot.png +[wf]: //files.lyte.dev/images/desktop-screenshot-busy-2023-07.png +[nix]: //git.lyte.dev/lytedev/nix [df]: //git.lyte.dev/lytedev/dotfiles diff --git a/content/tips/go-mod-proxy.md b/content/blog/go-mod-proxy.md similarity index 97% rename from content/tips/go-mod-proxy.md rename to content/blog/go-mod-proxy.md index 5f652bd..d0248ab 100644 --- a/content/tips/go-mod-proxy.md +++ b/content/blog/go-mod-proxy.md @@ -1,12 +1,14 @@ --- title: "Fetching Go Modules via `goproxy` Inside VPN" -date: "2023-06-22" +date: "2024-02-29" --- I think I finally setup the holy grail of universally being able to fetch-by-proxy go modules through a firewall using https://github.com/goproxy/goproxy + + On your internal host (such as your work machine), run the following: ```shell_session diff --git a/content/tips/iex-dbg-pry.md b/content/blog/iex-dbg-pry.md similarity index 96% rename from content/tips/iex-dbg-pry.md rename to content/blog/iex-dbg-pry.md index 1ae3678..72cce29 100644 --- a/content/tips/iex-dbg-pry.md +++ b/content/blog/iex-dbg-pry.md @@ -6,6 +6,8 @@ date: "2023-06-22" I love `iex -S mix ...` but I usually don't like when `dbg` asks me to `pry`. Just show me my data! Well, today I learned about `iex --no-pry`: + + ```console $ iex --help Usage: iex [options] [.exs file] [data] @@ -15,4 +17,4 @@ Usage: iex [options] [.exs file] [data] Now I can `iex --no-pry -S mix ...` and just see output instead of dealing with the prompts for `pry`ing! Not sure if anybody else felt this pain, but there -ya go. \ No newline at end of file +ya go. diff --git a/content/blog/restic-backups.md b/content/blog/restic-backups.md index 8bccd3a..b2a2dba 100644 --- a/content/blog/restic-backups.md +++ b/content/blog/restic-backups.md @@ -5,6 +5,14 @@ draft: true toc: false --- +For the longest time, my backup setup has been [a script I run manually that +was quite dumb][backupify] that had no features other than encryption. After +getting my feet wet with `btrfs` somewhat recently and seeing the magic of +deduplication, compression, and snapshots, I was all-in on these features and +also wanted them for my backups. + + + # TL;DR - Install `restic` on both machines (may only be needed on the backupper?) @@ -14,18 +22,6 @@ toc: false password in a secret place accessible only to the backupper user - `for d in $DIRS; do RESTIC_PASSWORD_COMMAND="load secret restic-key" restic -r sftp:restic@backuppee:/backups "$d"; done` - - -# Intro - -For the longest time, my backup setup has been [a script I run manually that -was quite dumb][backupify] that had no features other than encryption. After -getting my feet wet with `btrfs` somewhat recently and seeing the magic of -deduplication, compression, and snapshots, I was all-in on these features and -also wanted them for my backups. - -I also had a friend that had been using `btrfs` snapshots for sometime and I was super impressed with the simplicity of his setup. It made me want to improve mine! - # Planning The most important thing to think about when it comes to backups is to think diff --git a/content/tips/_index.md b/content/tips/_index.md deleted file mode 100644 index 0f73be4..0000000 --- a/content/tips/_index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Blog ---- - -## Latest Tips ([RSS](/tips/index.xml)) diff --git a/layouts/index.html b/layouts/index.html index 6af0bbf..a1694a9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,18 +16,4 @@ {{ end }} -
- -

- Latest Tips (RSS) -

-
- - {{ range (where .Site.RegularPages "Section" "tips") }} - {{ .Render "li" }} - {{ else }} -

Looks like there's nothing here!... yet!

- {{ end }} -
- {{ end }}