Nick's Notes

Occasionally I drink too much coffee and get the idea that I’m going to write down some of my thoughts. This is where they end up - my hodgepodge of projects, research, and interesting articles I’ve read.

I loosely group the content into three categories:

  • Blog Posts: Links to articles or how-tos on other sites.
  • Notebooks: Ongoing research and notes on topics I have found interesting.
  • How-tos: Somewhat completed projects.

Latest Blog Posts

Python Typer


I love writing a good cli tool, but it’s no fun parsing switches and arguments. Python’s click is a solid choice, but lately I’ve been loving typer. Typer is a super easy-to-use library, built on top of click.

Typer uses method variables and type hints to generate and parse the command line arguments for you, and even generates the help context. It’s practically magic.

check it out:
Typer

0 Comments
Python Best Practices


I always forget which tools are the latest and greatest to use when I’m setting up a new Python project. Alex Mitelman published a really helpful summary here:


Python Best Practices for a New Project in 2021

0 Comments
Control Chromecast From Linux / BSD / MacOS


  1. $ export URL="http://ccmixter.org/contests/freestylemix/hisboyelroy/freestylemix_-_hisboyelroy_-_Revolve.mp3"
  2. $ playerctl -p My_Chromecast open "$URL"

This will play a song on the Chromecast.

Ok, that’s awesome. chromecast_mpris, by Alex DeLorenzo

0 Comments
Query Instance Metadata on Google Cloud


I needed my web server to dynamically find the database instance in my Google Cloud project. Yes, I could use DNS, or environment variables. Instead, I just wanted to look it up at runtime via a start script.

The only magic here was getting the format string correct.

  1. gcloud compute instances list --project nicks-project --filter="tags:db" \
  2. --format='value[](networkInterfaces[].networkIP.notnull().list():label=INTERNAL_IP)'

Done!

0 Comments
Taking Better Meeting Notes


I usually take lots of notes during meetings, but they’re usually pretty random, and I almost never do anything with them. I’m not sure I’ll enact all of the ideas in Vasili’s note, but he has some really good recommendations for taking great notes, and actually doing something with them afterwards :)

Source: https://barehands.substack.com/p/how-to-take-meeting-notes

0 Comments

More...