From a7e8651c0b9cd19a682aec130e12fdb11089c4eb Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Mon, 5 Apr 2021 22:42:52 -0400 Subject: [PATCH] added remainder of content --- assets/css/app.scss | 3 +- lib/home73k/blog.ex | 2 +- lib/home73k_web/live/blog_live.ex | 2 +- .../content/2018/03/2018-03-24_pihole-love.md | 4 +- ...-17_if-no-one-will-do-it-neednt-be-done.md | 2 +- ...lana-del-arr-ultrapirates-parody-lyrics.md | 2 +- .../05/2020-05-23_creating-gif-from-video.md | 2 +- .../08/2020-08-01_enable-vs-cli-env-in-ps.md | 2 +- .../2020-12-07_shame-american-leadership.md | 2 +- ...2020-12-08_new-front-page-internet-home.md | 20 +++++++ ...f-salsa-chicken-roasted-pepper-and-rice.md | 23 ++++++++ .../2020-12-29_greek-lentil-soup-adapted.md | 52 +++++++++++++++++++ .../2020/12/2020-12-29_moms-meatloaf.md | 2 +- ...s-chicken-veg-asparagus-cauliflower-etc.md | 24 +++++++++ .../2020-12-29_southwest-chicken-skillet.md | 27 ++++++++++ ...-12-29_tortellini-sausage-broccoli-rabe.md | 17 ++++++ 16 files changed, 175 insertions(+), 11 deletions(-) create mode 100644 priv/content/2020/12/2020-12-08_new-front-page-internet-home.md create mode 100644 priv/content/2020/12/2020-12-29_bad-chef-salsa-chicken-roasted-pepper-and-rice.md create mode 100644 priv/content/2020/12/2020-12-29_greek-lentil-soup-adapted.md create mode 100644 priv/content/2020/12/2020-12-29_roast-potatoes-chicken-veg-asparagus-cauliflower-etc.md create mode 100644 priv/content/2020/12/2020-12-29_southwest-chicken-skillet.md create mode 100644 priv/content/2020/12/2020-12-29_tortellini-sausage-broccoli-rabe.md diff --git a/assets/css/app.scss b/assets/css/app.scss index bb6ce2d..a6128d7 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -50,7 +50,8 @@ a { color: $gray-100; border-bottom: $secondary 2px solid; text-decoration: none; - &.navbar-brand { + &.navbar-brand, + &.nav-link { border-bottom: none; } &:visited { diff --git a/lib/home73k/blog.ex b/lib/home73k/blog.ex index db9ba4b..0ab0f05 100644 --- a/lib/home73k/blog.ex +++ b/lib/home73k/blog.ex @@ -16,7 +16,7 @@ defmodule Home73k.Blog do Path.wildcard("#{Home73k.app_blog_content()}/**/*.md") |> :erlang.md5() != unquote(post_paths_hash) end - @posts Enum.sort_by(posts, & &1.date, {:desc, Date}) + @posts Enum.sort_by(posts, & &1.date, {:desc, NaiveDateTime}) @post_count length(@posts) @tags posts |> Stream.flat_map(& &1.tags) |> Stream.uniq() |> Enum.sort() diff --git a/lib/home73k_web/live/blog_live.ex b/lib/home73k_web/live/blog_live.ex index ac160be..aa97f12 100644 --- a/lib/home73k_web/live/blog_live.ex +++ b/lib/home73k_web/live/blog_live.ex @@ -83,7 +83,7 @@ defmodule Home73kWeb.BlogLive do |> Enum.at(page_int - 1) end - defp get_page_count, do: Integer.floor_div(Blog.post_count(), @page_size) + rem(Blog.post_count(), @page_size) + defp get_page_count, do: Kernel.ceil(Blog.post_count() / @page_size) defp assign_prev_next(socket, page_int) do socket diff --git a/priv/content/2018/03/2018-03-24_pihole-love.md b/priv/content/2018/03/2018-03-24_pihole-love.md index a66ccbe..cacbda9 100644 --- a/priv/content/2018/03/2018-03-24_pihole-love.md +++ b/priv/content/2018/03/2018-03-24_pihole-love.md @@ -2,13 +2,13 @@ %{ title: "Pi-Hole Love", id: "pihole-love", - date: ~D[2018-03-24], + date: ~N[2018-03-24 15:00:00], author: "Adam Piontek", tags: ["home", "privacy", "tech", "raspberrypi"], } --- -2021 UPDATE: while the pi-hole is a very cool project, I eventually grew tired of maintaining a separate DNS service. I still use unbound on my edgerouter but now my raspberry pi just runs some local web services. +*April 2021 update:* while the pi-hole is a very cool project, I eventually grew tired of maintaining a separate DNS service. I still use unbound on my edgerouter but now my raspberry pi just runs some local web services. Original post below: diff --git a/priv/content/2018/05/2018-05-17_if-no-one-will-do-it-neednt-be-done.md b/priv/content/2018/05/2018-05-17_if-no-one-will-do-it-neednt-be-done.md index be32ae8..eb1867c 100644 --- a/priv/content/2018/05/2018-05-17_if-no-one-will-do-it-neednt-be-done.md +++ b/priv/content/2018/05/2018-05-17_if-no-one-will-do-it-neednt-be-done.md @@ -2,7 +2,7 @@ %{ title: "If no one will do it, it needn’t be done — on BS jobs and toddler bosses", id: "if-noone-will-do-it-neednt-be-done-bs-jobs-toddler-bosses", - date: ~D[2018-05-17], + date: ~N[2018-05-17 15:00:00], author: "Adam Piontek", tags: ["economics", "society", "work"], } diff --git a/priv/content/2018/11/2018-11-09_lana-del-arr-ultrapirates-parody-lyrics.md b/priv/content/2018/11/2018-11-09_lana-del-arr-ultrapirates-parody-lyrics.md index b383bb2..7ddd767 100644 --- a/priv/content/2018/11/2018-11-09_lana-del-arr-ultrapirates-parody-lyrics.md +++ b/priv/content/2018/11/2018-11-09_lana-del-arr-ultrapirates-parody-lyrics.md @@ -2,7 +2,7 @@ %{ title: "Lana Del Arr's ‘Ultrapirates’ (parody lyrics for songs from Lana Del Rey’s ‘Ultraviolence’", id: "lana-del-arr-ultrapirates-parody-lyrics", - date: ~D[2018-11-09], + date: ~N[2018-11-09 15:00:00], author: "Adam Piontek", tags: ["song", "lyrics", "lanadelrey", "music", "parody", "pirates"], } diff --git a/priv/content/2020/05/2020-05-23_creating-gif-from-video.md b/priv/content/2020/05/2020-05-23_creating-gif-from-video.md index 24f719f..dc47469 100644 --- a/priv/content/2020/05/2020-05-23_creating-gif-from-video.md +++ b/priv/content/2020/05/2020-05-23_creating-gif-from-video.md @@ -2,7 +2,7 @@ %{ title: "Creating a gif from a video", id: "creating-gif-from-video", - date: ~D[2020-05-23], + date: ~N[2020-05-23 15:00:00], author: "Adam Piontek", tags: ["cli", "ffmpeg ", "gif", "multimedia", "video", "notes"], } diff --git a/priv/content/2020/08/2020-08-01_enable-vs-cli-env-in-ps.md b/priv/content/2020/08/2020-08-01_enable-vs-cli-env-in-ps.md index 023041a..5f4da38 100644 --- a/priv/content/2020/08/2020-08-01_enable-vs-cli-env-in-ps.md +++ b/priv/content/2020/08/2020-08-01_enable-vs-cli-env-in-ps.md @@ -1,7 +1,7 @@ --- %{ title: "Enable Visual Studio CLI environment in PowerShell", - date: ~D[2020-08-01], + date: ~N[2020-08-01 15:00:00], author: "Adam Piontek", tags: ["coding", "tech", "elixir", "windows", "powershell", "scripting"], } diff --git a/priv/content/2020/12/2020-12-07_shame-american-leadership.md b/priv/content/2020/12/2020-12-07_shame-american-leadership.md index 4c079b1..dc7a46c 100644 --- a/priv/content/2020/12/2020-12-07_shame-american-leadership.md +++ b/priv/content/2020/12/2020-12-07_shame-american-leadership.md @@ -2,7 +2,7 @@ %{ title: "Shame on American leadership", id: "shame-on-american-leadership", - date: ~D[2020-12-07], + date: ~N[2020-12-07 15:00:00], author: "Adam Piontek", tags: ["politics", "society", "policy", "pandemic"] } diff --git a/priv/content/2020/12/2020-12-08_new-front-page-internet-home.md b/priv/content/2020/12/2020-12-08_new-front-page-internet-home.md new file mode 100644 index 0000000..073b0ee --- /dev/null +++ b/priv/content/2020/12/2020-12-08_new-front-page-internet-home.md @@ -0,0 +1,20 @@ +--- +%{ + title: "New Front Page “Internet Home”", + date: ~N[2020-12-08 15:00:00], + author: "Adam Piontek", + tags: ["tech", "coding", "web", "fun"] +} +--- + +Since I'm enjoying this new minimalist blogging platform, and my main site has languished for years (I've tried doing a static site via hugo, then moved back to a Wordpress blog, but I didn't really like or make use of either), I figured it was time to exercise some old creative muscles and make a sort of minimalist home site. + +Way back in the late 90s and 2000s I would fashion HTML by hand and get a little artsy. This wasn't quite that, but it was fun! + +You can see [my repository here](https://73k.us/git/adam/73kus-front), one of the few I've made public. + +I made use of and expanded some skills I've used on other projects the last couple years, getting a little deeper into [webpack](https://webpack.js.org/) configuration so I could use [pug](https://pugjs.org/api/getting-started.html) (oh god editing raw HTML is such a pain! Pug is so much more pleasant) and inline SVG icons (thanks to [html-webpack-inline-svg-plugin](https://www.npmjs.com/package/html-webpack-inline-svg-plugin)). + +It's nothing too fancy beyond that, just generates HTML with some [Bulma CSS](https://bulma.io/) and minor changes. + +Who knows if I'll have time to expand it, the portfolio is empty so far and I'm incredibly busy, but it's been a fun detour! \ No newline at end of file diff --git a/priv/content/2020/12/2020-12-29_bad-chef-salsa-chicken-roasted-pepper-and-rice.md b/priv/content/2020/12/2020-12-29_bad-chef-salsa-chicken-roasted-pepper-and-rice.md new file mode 100644 index 0000000..4b7e2bc --- /dev/null +++ b/priv/content/2020/12/2020-12-29_bad-chef-salsa-chicken-roasted-pepper-and-rice.md @@ -0,0 +1,23 @@ +--- +%{ + title: "Bad Chef Salsa Chicken, Roasted Pepper, & Rice", + date: ~N[2020-12-29 15:04:00], + author: "Adam Piontek", + tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] +} +--- + +via [BudgetBytes](https://www.budgetbytes.com/salsa-chicken-meal-prep-bowls/): rice, "salsa chicken," roasted bell peppers --- My quick notes. + + + +- 2 boneless, skinless chicken breasts +- 16oz salsa +- 1/2 cup chicken broth +- 1 tsp chili powder + +Combine ingredients & cook in sauce pot. Boil, lidded, then simmer 30 minutes. + +Remove & shred the chicken, then re-combine shredded chicken with salsa/broth mixture. + +Combine with rice & peppers for meals. diff --git a/priv/content/2020/12/2020-12-29_greek-lentil-soup-adapted.md b/priv/content/2020/12/2020-12-29_greek-lentil-soup-adapted.md new file mode 100644 index 0000000..2121254 --- /dev/null +++ b/priv/content/2020/12/2020-12-29_greek-lentil-soup-adapted.md @@ -0,0 +1,52 @@ +--- +%{ + title: "Greek Lentil Soup, Adapted", + date: ~N[2020-12-29 15:03:00], + author: "Adam Piontek", + tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] +} +--- + +If anyone needs ideas for Good Plague Cookin', here's a tasty one. + +(This recipe was adapted per KB from [dragonwagon.com](http://dragonwagon.com/greek-lentil-soup/)) + + + +- spray cooking oil +- 1 pound lentils, rinsed and picked over\* +- 2 1/2 quarts vegetable stock or water +- 1 whole dried poblano pepper, hard stem broken off, or 1 fresh jalapeno, stem removed, halved + +_aromatics:_ + +- 2 teaspoons whole coriander seeds +- 1 1/2 teaspoons cumin seeds +- 1 teaspoon dried oregano, maybe also 1tsp basil +- 1/2 teaspoon dried thyme +- 2 bay leaves + +_vegetables:_ + +- 2 medium potatoes, scrubbed and diced +- 1 10-ounce box frozen chopped spinach, thawed, or 1 10-ounce bag fresh spinach, well-washed, stems removed, chopped +- 1 small to medium butternut squash, peeled, seeded and diced (you want to end up with about 2 1/2 cups diced squash) + +_saute:_ + +- 1 to 2 tablespoons olive oil +- 1 large onion, chopped +- 2 ribs celery, with leaves, sliced +- 3 large cloves of garlic, peeled and finely chopped +- salt and freshly ground black pepper, to taste +- 1/3 cup freshly squeezed lemon juice +- paper-thin slices of lemon to garnish; thin wedges of lemon to pass at the table + + +Spray a large soup pot with oil, and in it cook the onion/celery/garlic, then add the aromatics, lentils & stock, then add the squash/potatoes 15 minutes later and cook for another 20-30 mins, then add the spinach for only a few minutes at the end. + +(For the stock, you can just add a dollop of better than bouillon with the aromatics before adding the water.) + +This approach builds flavor better than the original recipe. + +Do not wait until the end to add salt, either. Salt in stages. Always. diff --git a/priv/content/2020/12/2020-12-29_moms-meatloaf.md b/priv/content/2020/12/2020-12-29_moms-meatloaf.md index 1f649ce..c8fb7c5 100644 --- a/priv/content/2020/12/2020-12-29_moms-meatloaf.md +++ b/priv/content/2020/12/2020-12-29_moms-meatloaf.md @@ -1,7 +1,7 @@ --- %{ title: "Mom's Meatloaf", - date: ~D[2020-12-29], + date: ~N[2020-12-29 15:00:00], author: "Adam Piontek", tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] } diff --git a/priv/content/2020/12/2020-12-29_roast-potatoes-chicken-veg-asparagus-cauliflower-etc.md b/priv/content/2020/12/2020-12-29_roast-potatoes-chicken-veg-asparagus-cauliflower-etc.md new file mode 100644 index 0000000..e28d656 --- /dev/null +++ b/priv/content/2020/12/2020-12-29_roast-potatoes-chicken-veg-asparagus-cauliflower-etc.md @@ -0,0 +1,24 @@ +--- +%{ + title: "Roast potatoes, chicken, veg (asparagus, cauliflower, etc)", + date: ~N[2020-12-29 15:05:00], + author: "Adam Piontek", + tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] +} +--- + +So simple, so easy, so good --- I often forget I can make this. + + + +- 6ish chicken thighs +- 6ish potatoes +- bundle of asparagus + +Preheat oven to 425 + +Lightly oil the chicken, add salt & pepper, maybe thyme, sage, etc. Roast the chicken 35-40 min, or until 165° + +Wash & chop up the potatoes. Lightly oil them, and add, salt, pepper, thyme (use chicken oil if possible!). Roast them 25-30 min + +Rinse the veggies, chop as needed. Lightly oil, add salt & pepper. Roast until done (about 15 min for asparagus). diff --git a/priv/content/2020/12/2020-12-29_southwest-chicken-skillet.md b/priv/content/2020/12/2020-12-29_southwest-chicken-skillet.md new file mode 100644 index 0000000..39ebcc3 --- /dev/null +++ b/priv/content/2020/12/2020-12-29_southwest-chicken-skillet.md @@ -0,0 +1,27 @@ +--- +%{ + title: "Southwest Chicken Skillet", + date: ~N[2020-12-29 15:10:00], + author: "Adam Piontek", + tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] +} +--- + +Adapted from From [BudgetBytes](https://www.budgetbytes.com/southwest-chicken-skillet/), this makes use of pre-cooked chicken (rotisserie, roasted, whatever). + + + +- 1 cup uncooked long grain white rice +- 1 cup salsa +- 1.5-2 cups precooked shredded chicken +- 1 15oz. can black beans +- 1 Tbsp chili powder +- 1 3/4 cups chicken broth +- 1 cup shredded cheese +- 2-3 green onions, sliced + +In a large skillet, combine the rice, salsa, chicken, black beans (drained), chili powder, and chicken broth. Stir until everything is evenly combined. + +Place a tight fitting lid on the skillet, turn the heat on to high, and let the skillet come to a full boil. As soon as the skillet comes to a boil, turn the heat down to low and let it simmer for 15 minutes. Make sure it is simmering the entire time, turning the heat up slightly if needed (you should be able to hear it simmer quietly). + +After 15 minutes, turn off the heat, and let it rest with the lid in place for 5 more minutes. Finally, remove the lid, and fluff the mixture with a fork. All of the liquid should be absorbed and the rice should be tender. Sprinkle 1 cup of shredded cheese over top, replace the lid, and let it sit for a few minutes, or until the cheese is melted. Meanwhile, slice the green onions. Sprinkle the green onions over the melted cheese and serve hot. \ No newline at end of file diff --git a/priv/content/2020/12/2020-12-29_tortellini-sausage-broccoli-rabe.md b/priv/content/2020/12/2020-12-29_tortellini-sausage-broccoli-rabe.md new file mode 100644 index 0000000..7e41b8c --- /dev/null +++ b/priv/content/2020/12/2020-12-29_tortellini-sausage-broccoli-rabe.md @@ -0,0 +1,17 @@ +--- +%{ + title: "Tortellini w/Sausage & Broccoli Rabe", + id: "tortellini-sausage-broccoli-rabe", + date: ~N[2020-12-29 15:15:00], + author: "Adam Piontek", + tags: ["food", "recipe", "mealprep", "pandemiceats", "plaguecooking"] +} +--- + +Another good meal prep. + +We use frozen cheese tortellini. Can use frozen broccoli, but broccoli rabe is preferred. + + + +Brown the sausage; cook the greens w/olive oil, garlic, salt, red pepper flakes; steam the tortellini on the bed of greens. Ok to add a little water if needed, frozen veg usually more watery than fresh. \ No newline at end of file