Lazy self-installing Python scripts with uv
I frequently find myself writing my own short command-line scripts in Python that help me with day-to-day tasks. It’s so easy to throw together …
treyhunner.com [1]
I really like Trey’s steps to making an executable python script with uv
his old process seems to be the same with a new shebang
- Add an appropriate shebang line above the first line in the file (e.g. #!/usr/bin/env python3)
- Aet an executable bit on the file (chmod a+x my_script.py)
- Place the script in a directory that’s in my shell’s PATH variable (e.g. cp my_script.py ~/bin/my_script)
And here is the new format the the shebang followed by the metadata comment block defined in PEP 723.
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "ffmpeg-normalize",
# ]
# ///
References:
[1]: https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
Publishing rhythm
My approach to running a link blog
I started running a basic link blog on this domain back in November 2003—publishing links (which I called “blogmarks”) with a title, URL, short snippet of commentary and a “via” …
Simon Willison’s Weblog · simonwillison.net [1]
I still cannot believe I thought I had such a unique idea with thoughts only to find out shortly thereafter that Simon beat me to the punch by about 20 years!
Simon put a lot of work into this post [2] please check it out. Its not only filled with tons of little nuggets about blogging, it has just a ton of links to other posts I’m itching to read now.
https://simonwillison.net/2024/Dec/22/link-blog/#thoughts.waylonwalker.com
a linkblog proves that you read # [3]
Simon mentions it in the post as well, but one thing about having a link blog does is that it proves that you actually read articles that you share. This is really more about proving to myself, and reminding myself that anyone else, it’s a good feeling.
Trying to add soemthing extra # [4]
- include names of people, and add tags for common people
- something extra - the whole point is to bring something to the post without stealing thunder, but rather li...
This is a test post. I just updated the chrome extension for thoughts to take a the thumbnail image on open of the chrome extension so that it is rea...
thoughts.waylonwalker.com [1]
[1]
References:
[1]: https://thoughts.waylonwalker.com/post/455
I really like this idea of keeping a set up contacts in a markdown repo, and being able to wikilink them to different tickets / meetings and what not....
thoughts.waylonwalker.com [1]
[1]
References:
[1]: https://thoughts.waylonwalker.com/post/454
How I use Obsidian Templater
One of my favorite Obsidian plugins is Templater, which lets you create reusable templates in your notes vault!
cassidoo.co [1]
I really like this idea of keeping a set up contacts in a markdown repo, and being able to wikilink them to different tickets / meetings and what not. I’m imagining the graph you can build, it feels quite interesting. Even more relevant as we see things like teams rolling out retention limits to messages.
Here is Cassidy’s format, I like it but I’m probably not going to track the birthday of most people I work with, thats just not the relationship I tend to have with work friends. It might be a midwest or non tech thing, but I am not even aware if any of my co-workers have social media, and I assume that if they did it would not include anything work related but more football and other sports.
[2]
References:
[1]: https://cassidoo.co/post/obsidian-templater/
[2]: https://dropper.waylonwalker.com/api/file/32859bd6-1b9f-4d40-a87c-0b96a5a42084.webp
docker context (and an issue to question your sanity) | Nic Payne
docker contexts are great, would recommend putting them in your prompt though (via starship or something else)... here's why I like to manage my containers
pype.dev [1]
Dang context can really cause you to pull your hair out. Context seems so freaking convenient, but I’ve avoided it and just ssh in for these reasons. Maybe I’ll come around eventually but for now ssh is my friend.
References:
[1]: https://pype.dev/docker-context-and-an-issue-to-question-your-sanity
thoughts 0.0.4
This is such an improvement to the backend of my website it warrants a blog
post of celebration. For far too long I’ve been dealing with a tiny ass edit
form on thoughts. I tend to not edit them, and try to get them right in one
go. This is kinda the point of a thought, its a quick post meant to be the
size of a tweet, but sometimes I’m leaving thoughts on a video or long post and
want to make sure I have a good save point, but I just keep the thing in draft
and hope I don’t loose if for far too long.
Results # [1]
Let’s see this change in action!!
before # [2]
This is the tiny ass form nested deeply in the flow of the feed. When I made
it I naively just swapped out the post itself with the edit form, and swapped
the post back in after edit.
[3]
thoughts is built with HTMX [4] btw so all html [5] is rendered in the backend and swapped by htmx client side.
after # [6]
Now the edit is a full page modal with a nice blurry backdrop effect to the
rest of the content. This feels p...
I’m really excited about jnv [1], an amazing project by ynqa [2]. It’s worth exploring!
Interactive JSON filter using jq
References:
[1]: https://github.com/ynqa/jnv
[2]: https://github.com/ynqa
tui-network [1] by Zatfer17 [2] is a game-changer in its space. Excited to see how it evolves.
No description available.
References:
[1]: https://github.com/Zatfer17/tui-network
[2]: https://github.com/Zatfer17
I came across markitdown [1] from microsoft [2], and it’s packed with great features and ideas.
Python tool for converting files and office documents to Markdown.
References:
[1]: https://github.com/microsoft/markitdown
[2]: https://github.com/microsoft
gh-skyline [1] by github [2] is a game-changer in its space. Excited to see how it evolves.
A GitHub CLI extension to generate a 3D model of your GitHub contribution history
References:
[1]: https://github.com/github/gh-skyline
[2]: https://github.com/github
I’m really excited about studio [1], an amazing project by outerbase [2]. It’s worth exploring!
A lightweight Database GUI in your browser. It supports connecting to Postgres, MySQL, and SQLite.
References:
[1]: https://github.com/outerbase/studio
[2]: https://github.com/outerbase
If you’re into interesting projects, don’t miss out on blahg [1], created by cassidoo [2].
Cassidy’s blog template built with Astro and TinaCMS!
References:
[1]: https://github.com/cassidoo/blahg
[2]: https://github.com/cassidoo
-
Reminder to tune in later, can’t watch now, but saw a link on Dave’s blog.
[1]
References:
[1]: https://dropper.waylonwalker.com/api/file/ea6d4a9f-9abe-4853-9b5b-97335130d221.webp
I got the ADHD, too
This month I got my official diagnosis for Adult ADHD. It’s fun to share experiences with friends. While ADHD presents some new waters to navigate, it isn’t exactly news to me. Thanks to Dr. Ti...
daverupert.com · daverupert.com [1]
Cheers to the Unique brains dave. I can say I am 100% with Dave on all of these, except the clean environment thing, lucky Dave. If I have enough room to see what I am doing and walk around a mess, I probably wont even notice it. I’m so hyper focused on what is right in front of me that mess could be a huge pile of cash and i’d never see it.
References:
[1]: https://daverupert.com/2024/12/adhd/
I love me some styled rss, it's how the OG internet was made to be. You choose what you want to read and when. There is no middleman aggregator infl...
thoughts.waylonwalker.com [1]
[1]
References:
[1]: https://thoughts.waylonwalker.com/post/448
How to make your RSS feed pretty
Life is too short for ugly XML.
cassidoo.co [1]
I love me some styled rss, it’s how the OG [2] internet was made to be. You choose what you want to read and when. There is no middleman aggregator inflating the reach of things they want you to see or suffocating things against them. It’s just you and your internet friends.
Cassidy’s Styled rss [3] # [4]
Cassidy has a quite lovely and easy to read rss feed, with an open source style sheet, that is part of her open source blog template for astro blahg [5], love that name by the way!
[6]
Dave Rupert’s Feed [7] # [8]
I first learned of styled rss feeds from shoptalkshow.com, specifically from Dave Rupert [9].
[10]
Dave uses a pretty bog standard styled rss feed with pretty-feed-v3 [11]. This repo is probably the best place to start if you are looking to style your rss feed.
https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl
My RSS Feed [12] # [13]
My feed comes from my static site generator markata [14], a plugins all the way down static site generator written in python, made for customizing, lacking just about any and all docs so you are on your own.
[15]
Refere...
Today i got hit by this accessibility issue on my site. Low contrast links are not distiniquishable. I had not seen this error title before it was new to me, maybe I have bad memory or maybe it’s new to me.
I ended up dropping the background color of the site down a notch as I didn’t
really care for the semi-dark brown anyways. I’m liking the near black
bg-zinc-950 much better now.
Now I got that 100 A11y score in lighthouse.
Dropper
Dropper is a simple file sharing service.
Dropper · dropper.waylonwalker.com [1]
Dropper is a place for me to drop files for quick posts like this.
[2]
References:
[1]: https://dropper.waylonwalker.com/
[2]: https://dropper.waylonwalker.com/api/file/c3a4c39d-c9ab-4e0a-b4c1-b74362877342.webp
Add a healthcheck to your FastAPI app | Nic Payne
I'm building a few FastAPI apps to throw in docker and run on my homelab... I wanted to add healthchecks and here's a simple way to do it Make sure to
pype.dev [1]
Nice example of adding a healthcheck to fastapi [2], and integrating it with docker. Don’t forget to include curl in the install, nice touch.
References:
[1]: https://pype.dev/add-a-healthcheck-to-your-fastapi-app
[2]: /fastapi/