-
Price An Stl Print On Slant3D
I I You will need an api key from the slant api, which currently requires a google Then you can run the python script to price out your print. I
-
K3S Config After First Install
-
Obsidian-New-File
Wikilinks are a core concept within obsidian to link to documents by Obsidian gives you a keybinding
-
Vim-Gq
Vim has a handy feature to format text with ![ ![
-
Slug
A slug is the part of the url that comes after the domain. Commonly matches the file name of a markdown file many blogging systems. These are typically human
-
Obsidian-Go-To-Definition
It was not obvious to me, but if you have a wikilink such as
-
Obsidian Using Templater Like Copier
I Here is what I came up with to replace my til template. tR to.file.cursor()
-
Obsidian Image Converter
I ![ Once the images are there they are pushed and deployed as their own site to ! This is part of me getting set up and
-
Convert Mp4 For Twitter With Ffmpeg
I
-
K8S Kustomize Diff
I You can enable color diffs by using an external diff provider like colordiff. You might need to install colordiff if you don Now I can try out kustomize chang
-
Arch Remove Orphaned Packages
-
Animal Well Keyboard
Animal well does not let you remap keys, and really doesn wasd - move space - jump / a enter - interact / b x - throw c - inventory 1 - left item / rb 2 - open
-
Diskcache As Debounce
I ! I am using it for longer running tasks and I don check if a job is running automatically expire jobs My brain first went to thinking I needed another servic
-
Install Sealed-Secreats Via Manifest
Yesterday I realized that I have overlooked the default installation method of
-
Playerctl Fixes Arch Media Keys
I Once it is installed all of my media keys started working right away. I played around with it a bit more and came up with a way to display the
-
Tailwind Post Template
Today I am playing around with tailwind, flexing the css muscle and learning I created a new post template that mimics a terminal look in css where I could I th
-
Tailscale Ssh
Tailscale allows you to ssh into all of your tailscale machines, it busts I picked this up from the tailscale youtube channel.
-
Latest Page In Markata
I just implemented a latest blog post link in Markata by asking for the first Feeds are setup in For more information on markata check out the full
-
Just Picker
-
Showmount-E
TIL how to display the list of nfs mounts on your network. You can even look for mounts of other machines on your network.
-
Control Minio Token Access
To allow access only to the
-
How To List Sqlite Tables
You can inspect sqlite tables with the sqlite shell. note that you get into the shell with I also learned that Here is an output from my redka database. The
-
Redka Runs On Sqlite
With the liscense changes to redis there are several new forks out there. One We now have redis running on port 6379 that we can connect to with a redis We can
-
Am I Vulnerable To The Xz Backdoor?
The main system that I am concerned about is my arch BTW machine. I found a For my machine I am concerned with this line. The xz packages prior to version 5.6.1
-
Arch Dependencies
paru has some nice features that I rarely use, and hav to look up when I need You can check all the packages depended on by nodejs by running the following.
-
Copier Trust
I recently had to update my copier-gallery command to trust my own templates All the the copier copy api can be found with help.
-
Ipython F2
Today I accidentally ran f2 in ipython to discover that it opens your $EDITOR better yet add
-
Python Inline Snapshot
inline-snapshot Here is the most basic starter. Now when I run It also works with pydantic models.
-
Sqlmodel Indexes
I For every field that you will be querying on, you can create an index, by ! The docs cover this pretty well, and in quite depth -
-
Sqlite Vacuum
Today I learned how to VACUUM a sqlite database and cut its size in about half. Why is it important to do a VACUUM? In short its becuase the file system gets To
-
Tailwind Animations
I learned that tailwind animations are pretty easy to add only needing a few Here are the classes that I used to transition my colors very slowly. And the entir
-
How To Kill Ollama Server
I recently updated No matter what it comes back You can confirm this with the following command. Next time you want to start you can do it as before with
-
Composing Typer Clis
Typer makes it easy to compose your cli applications, like you might with a web You will see similar patterns in the wild, namely the Lets setup the cli app it
-
Tailwind Arbitrary Values
I learned not to fear the arbitrary size feature of tailwind. While building Don Learn more about using-arbitrary-values from their docs
-
Fix Npm Global Install Needs Sudo
Each time I go to set up npm I am frustrated by the errors saying that I don For the fix to remain persistent you need to put these two lines in your shell
-
Darkmode Scrollbars
If you are designing a website in dark mode the scrollbars can be finicky to Want a rounded scrollbar thumb? add these styles. This makes a very nice looking de
-
Udating Cloudflare Pages Using The Wrangler Cli
Before deploying to cloudflare pages with wrangler you need a cloudflare api Next install wrangler using npm. Before you deploy to cloudflare pages you need to
-
Scheduling Cron Jobs In Kubernetes
For my reader app I am using cronjobs to schedule my a new build and upload to
-
Jinja Macros
I am working on a page for Now I can use the same code for all of my links, and call the macro to use it.
-
Jinja Loop Variable And Htmx
jinja has a loop variable that is very handy to use with htmx. Whether you Now for every chunk of contacts that we load we will trigger the infinite
-
Fastapi Jinja Url_For With Query Params
Out of the box Starlette does not support url In my searching for this I found ! The route might look something like this. To access the home route using url
-
Setting Up A Kind Cluster With Argocd Installed
Kind (Kubernetes in Docker) is a tool that makes it easy to create and tear Argocd is a continuous delivery tool that makes it easy to setup gitops Here is how
-
Kubernetes Kubeseal
In my homelab kubernetes cluster I am using kubeseal to encrypt secrets. I You see kubeseal encrypts your secrets with a private key only stored in your Instal
-
Nvim Stupid Gf Bind
So after months of fighting with gf not going to template files, I finally This was the dumbest keybind in my config, that I copied from someone else I have jin
-
Cli Auth
Authentication from cli tools can be a bit of a bear, and I have to look it up I set up a fastapi server running on port 8000, it uses a basic auth with The og
-
Hiding Form Input During Htmx Request
I am working on fokais.com It also felt like nothing was happening while sending the email to the user for Let The intent is to hide the spinner until the reque
-
Stripe Cancellations In Fastapi And Sqlmodel
Today I am working on fokais.com, trying to get to a point where I can launch I am building the fokais backent in python primarilyt with fastapi and sqlmodel He
-
Still Loving Tailwind
I A few months back in september of 2023 I made values are well thought out it classes that make sense tree shakable I started working on fokais.com only a few
-
How To Host Static Content With Fastapi
I wanted to host some static files through fastapi. Typical use cases for this The docs cover how to host static files, and give this solution that is built If
-
Jpillora-Installer
jpillora/installer is the install script generator I have been looking for. It Also these pre-compiled binaries install rediculously fast compared to building C
-
Set Up Minio Bucket Entrypoint
I recently se tup minio object storage in my homelab for litestream sqlite First I had to configure the Key ID and Secret Access Key generated in the Then set t
-
Setup Tailwind For Jinja
I npm You will need to create a tailwind.config.js file, to get this you can use the cli. To set up tailwind to work with jinja templates you will need to point
-
Python Scandir Ignores Hidden Directories
The next version of markata will be around a full second faster at building I was looking through my profiler for some unexpected performance hits, and I starte
-
Getting Started With Pydantic
Pydantic is a Python library for serializing data into models that can be To install pydantic you will first need python and pip. Once you have pip Always insta
-
Setting Up Paru | Installing From The Aur For The ...
paru is an aur helper that allows you to use a package manager to install The Aur is a set of community managed packages that can be installed on arch based dis
-
Releasing A New Version Of Your Python Package Jus...
Quickly and easily create new versions of your Python package with the Releasing a new version of your Python package can be a daunting task. You need to make
-
Arch Linux Randomly Rejecting Passwords
Fix Arch Linux randomly rejecting passwords with one command. Try If you The good news is that there is a simple fix for this issue. The following bash bash fai
-
Dash E Your Github Docker Actions
Give github actions the -e flag in the shebang The -e flag to the bash command allows your script to exit immediately if any In windows the solution is not qui
-
Ssh Copy Id
I recently setup some vm
-
Ssh Key Permissions
I just shared some ssh keys with myself and ran into this error telling me that I changed them with the following commands.
-
Formatme
-
Nvim Navic
With the latest release of version of nvim 0.8.0 we get access to a new winbar nvim exposes the winbar api in lua, and you can send any text to the winbar as fo
-
Textual App Devtools
I am working through the textual tutorial, and I want to put it in a proper cli I set up a new project running If you are using Now to get devtools through a
-
Pipx Textual Devtools
I really like having global cli command installed with pipx. Since textual You can pipx install textual. But if you try to run any textual cli commands you wil
-
Caching Python Virtual Environments In Github Acti...
-
Markata Github Pages
11ty https://www.rockyourcode.com/how-to-deploy-eleventy-to-github-pages-with-github-actions/ hugo puts it in the base url https://gohugo.io/getting-started/con
-
Obs Virtual Camera On Boot
For far too long I have had to fidget with v4l2oloopback after reboot. I After a reboot the start virtual camera button won Today I learned that you can turn o
-
Localstack Status Permission
I ran into an issue where I was unable to ask localstack for its status. I I would run this to ask for the status. And get this error It dawned on me that the f
-
Running Aws Cli Commands With Localstack
Upon first running an The easy easiest way is to leverage a package called If you want to use the cli pro
-
Markata Supports Jinja Plugins 0.5.0.Dev2
Markata now allows you to create jinja extensions that will be loaded right in The entry for 0.5.0.dev2 from markata Created entrypoint hook allowing for users
-
Getting Started With Django Rest Framework
In my adventure to learn django, I want to be able to setup REST api To get started lets open up a Now we need to declare Next I will create all the files tha
-
Using Django Rest Framework Inside React
-
Markata Now Uses Hatch
Markata now uses hatch as its build backend, and version bumping tool. Markata 0.5.0 is now out, and it Over the last month I made a big push to get 0.5.0 out,
-
Django Polls App
-
Django Create Superuser
My next step into django made me realize that I do not have access to the admin panel, turns out that I need to create a cuper user first. Right away when tryin
-
Django Disallowed Host
I am continuing my journey into django, but today I am not at my workstation. I I found this in
-
Trying Out Django
I have no experience in django, and in my exploration to become a better python If you found this at all helpful make sure you check out the The first thing I
-
How To Escape Variables In Jinja Templates
While updating my site to use Markata Jinja comes with a handy utility for escaping strings. I definitly tried to The issue I ran into was when trying to setup
-
I'Ve Made My Ipython Config Too Complicated, Let'S...
When I am developing python code I often have a repl open alongside of it So in the past the way I have setup a few extensions for myself is to add I missed the
-
Markata Extend In Configuration
A long needed feature of markata has been the ability to really configure out Now you can add some extra style to your site with the existing built-in Each text
-
Create A New Python Project With The Hatch Cli
I creating new versions created by myself with stable diffusion Note Running After running and naming the project You can also fill in the project name ahead
-
Github Actions Delete All Workflow Runs
Today I ran a bunch of actions, but I wanted to clean up all the runs that I I found
-
Versioning Python Projects With Hatch
Hatch has an amazing versioning cli for python packages that just works. It creating new versions created by myself with stable diffusion For trying out the T
-
From Markdown To Blog With Markata | Lightning Tal...
Markata is a great python framework that allows you to go from markdown to a Full transparancy... I built markata. The talk is live on YouTube. Make sure you c
-
I Spoke At Python Web Conf 2022
I spoke at python webconf in March 2022 about how I deploy this blog on a Building this blog has brought me a lot of benefits. I have I also bump into people f
-
I Turned On 2Fa For All Of My Pypi Packages
I got all the pypi packages that I own behind 2 factor authentication. 💪 Recently this really made it I feel like this caused a bit of confusion as turning on 2
-
Use Vim To Remove Duplicates
I just love how some features of vim are so discoverable and memorable once you I recently used this to dedupe my autogenerated links section for Here is what t
-
Highlighting Text Ranges With Rich | Python
{% for year in markata.map( {% for post in markata.map( [
-
Highlighting Text Ranges With Rich | Python
Today I https://twitter.com/ While waiting for that reply let Lets import all the classes that we need from Now we need some code to highlight. I am going to r
-
Vimgrep Open Buffers
How to vimgrep over hidden files. I needed to delete all build pipeline steps that were named Today After searching through all the projects it was clear that
-
Markata 0.3.0 Is 15-20% Faster
a sprinter edging out his opponent by Dall-e It Markata started off partly as a python developer frustrated with using nodejs Over time this side project has gr
-
How To Disable Kedro Viz | Or Any Kedro Hook
-
Gpu Stats In My Linux Statusbar
-
Get The Version Of Any Python Package | Python Api
A common meta thing that I need in python is to find the version of a package. In searching the internet for an answer nearly every one of them pointed me to Wh
-
Arch Fonts
https://gist.github.com/YoEight/d19112db56cd8f93835bf2d009d617f7
-
Manage Your Displays With Xrandr Manager
xrandr is a great cli to manage your windows in a linux distro using x11, which Check out the xrander-manager is a python cli application that is simply a nice
-
Get Better At Jq Interactively | Ijq
[ [
-
Two New Shell Aliases For Git
Recently I added two new bash/zsh aliases to make my git experience just a tad Most of our work repos were recently migrated to new remote urls, we scriped The
-
Ipython Q To Exit
So many terminal applications bind After digging way too deep into how IPython implements its It was that simple. This is not a game changer by any means, but
-
Copier Slugify | Python Templating | Using Cookiec...
It Yes the solution comes from a competing templating framework. I install copier with pipx, so I need to inject cookiecutter in to my copier If you are using a
-
Gh Repo Create
I love getting faster in my workflow, something I have recently added in is Check out what I created here.
-
Textual Has Devtools
Textual has devtools in the upcoming css branch, and its pretty awesome Textual is still very early and not really ready for prime time, but it As Textual is a
-
The One Pip Config You Need To Have
Whenever you are installing python packages, you should always use a virtual Pip is the pacakage tool for python. It installs third-party packages and is pytho
-
Pyenv No Module Named '_Sqlite3'
I I talked about why and how to use pyenv along with my first impressions in According to libsqlite3-dev When I make a fresh env and install ipython I still ge
-
Git Merge Ours
Sometimes you have a pretty old branch you are trying to merge into and you are The first step is to make sure your local copy of the branch you are moving It M
-
Vim Plugged Snapshot
A few of my friends and I all just borked our neovim configs during a plug https://twitter.com/pypeaday/status/1524882893914398732 Lucky for me I did it on a ho
-
Qutebrowser Clean Up All Status Bars
I really like the super clean look of no status menus, no url bar, no bookmarks
-
Convert Your Qutebrowser Config To Config.Py
When you first start qutebrowser It will create some config files in As far as I know qutebrowser will create this default config out of the You might want to c
-
Bash Function To Edit Scripts Faster
I am often editing my own scripts as I develop them. I want to make a better Currently I am combining for now lets use my todo command as an example On first p
-
List All Git Commits With Gitpython
I am getting ready to do some timeseries analysis on a git repo with python, my This returns a generator, if you are iterating over them this is likely what The
-
Gpg Signing Commits Over Ssh
I was editing some blog posts over ssh, when I ran into This is the error message I was seeing. The fix ended up being pretty simple, but quite a ways down this
-
Review Pull Requests With Git Worktrees
Sometimes you get a PR on a project, but cannot review it without wrecking your This will create a new directory
-
Using Git From Python
GitPython I recently made myself a handy tool for making screenshots in python and it [ GitPython Import Repo from the git library and create an instance of the
-
Pipx On Windows
Python, click install Edit the System Environment Variables Environment Variables button Add the following path to your users Path Variable
-
Python Sys.Excepthook
Sometimes you just want python to do something else when you hit an exception, I am working on a quick and dirty python script designed to take screenshots I co
-
A Tty Can Save Your Bacon
I recently was unable to boot into my home Linux Desktop, it got stuck at https://twitter.com/ There Normally you have 6 TTY ctrl+alt+F1: login screen ctrl+alt+
-
Pygame Events Are Queued | Don'T Make This Mistake
pygame events are stored in a queue, by default the most suggested way You don Let printing the events reveal this Let printing the events reveals that there ar
-
Display Sprites In Pygame | Load And Blit
One of the most essential concepts of pygame to start making a game you will I started by making a spotlight in Gimp, by opening a 64x64 pixel image and This is
-
Mixing Colors At The Command Line
From the same Author that brought us command line essentials like You can install from one of the Something I often do to blend colors together is add a little
-
Dunk Is My New Diff Pager
Browsing through twitter the other day I discovered it through this Before I dive in deep, I do want to mention that Dunk is super new and beta at The author re
-
Pygame Boilerplate Apr 2022
I I What currently have is a single module starter package that is on github Since it You can make a quick game by inheriting from Game, and calling Here is wha
-
Unzip Minecraft Mods To Their Directory From The C...
This morning I was trying to install a modpack on my minecraft server after So I Then I go back to my server and download the modpack with wget. Now I can unzip
-
Did My Site Build Just Go Down?
My personal Site build went down last week, and I was unable to publish a new Classic IT fix, rerun it and see if you get the same error. Everyone is busy Also
-
Don'T Inherit From Python Baseexception, Here'S Wh...
I ran into a PR this week where the author was inheriting what BaseException Try running these examples in a Since things such as If you except from exception
-
How I Make Cache-Keys From Python Objects
When I need a consistent key for a pythohn object I often reach for Yesterday we talked about setting up a persistant cache with python diskcache. [ My first th
-
How I Setup A Sqlite Cache In Python
When I need to cache some data between runs or share a cache accross multiple Install diskcache into your virtual environement of choice using pip from your com
-
Cache A Python Function With Lru_Cache
The easiest way to speed up any code is to run less code. A common technique The easiest and most common to setup in python is a builtin functools.lru Any time
-
Set User Agent On Pandas Read_Csv
I keep a small I recently switched hosting from netlify over to cloudflare. Well cloudflare This breaks my go to example dataset. What After a bit of googling
-
Get Webpage With Python Requests
Python Requests is on pypi and can be installed into your virtual environtment with pip. Requests makes getting content from a web url as easy as possible. Requ
-
Ease Into Htmx With Htmx-Get
I recently attended Start with some html boilerplate, pop in a script tag to add the Save this as If you don Now the page has a button that is ready to replace
-
Style Lookatme Slides A Bit More Personal
I recently gave a talk at python web conf 2022, and one of the things I did Lets use this section to show what it ☝ This is how my write markdown build site p
-
How I Load Markdown In Python
I use a package It Frontmatter is a handy way to add metadata to your plain text files. It Here is the exact frontmatter for this post you are reading on my si
-
Python'S Dict Union Operator | Pep 584
Today I was watching the python web conf 2022 and saw I [ More on unpacking in this post. With the release there is also a new update syntax Are you writing li
-
How I Present Markdown Slides From The Terminal
I love the freedom of writing in markdown. It allows me to write content from I will most often just present right from the terminal using I sometimes also use
-
How I Read Files In Python
When I need to read contents from a plain text file in python I find the
-
Automatically Generate A List Of Markdown Links In...
Let Before you run someone Something that I have always appreciated form Searchng through the internet I was able to find an article from Here is my interpretat
-
Create A Swapfile On Your Linux Machine
If you ever end up on a linux machine that just does not have enough ram to You can put this where you wish, for this example I am going to pop it into You can
-
How I Glob For Files In Python
A very common task for any script is to look for files on the system. My go to I setup a directory to make some examples about globbing. Here is what the 1 di
-
Set Your Git Pager Config
Setting up your git pager to your liking can help you navigate diffs and logs You can set the pager right from your command line with the following command. You
-
Configure Git To Autocorrect Your Fat Fingers
If you have ever mistyped a git command very close to an existing one What you might not have known is that you can configure git to just run Now when you typo
-
Install Yq | A Light Weight Yaml Parser Cli
yq I love that all of these modern tools built in go and rust, just give you a I use a bunch of these tools, and for what its worth I trust the devs behind Sinc
-
Pytest-Mock Basics
Last Thursday I learned about Watching him use pytest-mock is out on pypi and can be installed with pip. Sometimes I fall victim to making these posts nice an
-
Python Walrus Inside List Comprehension
Python 3.8 came out two and a half years ago and I have yet to really lean in Now that Python 3.6 is end of life, and most folks are using at least The assignm
-
Make Kedro Runs Beautiful
Kedro rich is a very new and unstable (it There is no pypi package yet, but it You can run your pipeline just as you normally would, except you get progress Lis
-
Git Worktrees Are Not So Scary
So worktrees, I always thought they were a big scary things. Turns out they I thought you had to be all in or worktrees or normal git, but not both. When Maki
-
Configure Git To Always Push To The Current Branch
Has no upstream branch errors in git can be such a damn productivity killer. If you have not yet configured git to always push to the current branch, you Let Yo
-
Setup Ssh From Chromebook To Home Desktop
I write many of these posts from a 10 year old desktop that sits in my I Today I am giving it a second try, but this time with ssh. Before doing anything I chec
-
Mermaid Highlight
Mermaid gives us a way to style nodes through the use of css, but rather than produces the following graph style one fill:#BADA55
-
Open Files With Nvim Remote
I recently found a really great I have this added to my In my workflow I open a tmux session for each project, so this First open neovim, but with the If you
-
Grouping Mermaid Nodes In Subgraphs
Mermaid provides some really great ways to group or fence in parts of your Here we can model some sort of data ingest with some raw iot device and our If we wan
-
Dedupe Your Shell Paths
If you have ever ran
-
Simple Plain Text Diagrams In Html
Since GitHub started supporting mermaid in their markdown I wanted to The docs kinda just jumped right into their mermaid language and really You just write me
-
Bash Mktemp
There is GNU coreutils command called Here are some examples of making temp directories in different places, my Here is a sample script that shows how to captu
-
Recover A Lost Git Branch With Checkout
Once you give a branch the big D ( Checkout is your savior, all you need is the commit hash. We have all done this, you give branch the big D only to realize i
-
Git Find Deleted Files
It Listing all the deleted files in all of git history can be done by These various commands will show all files that were ever deleted on [ The reflog can be s
-
Git Diff-Filter
Git commands such as You can find the full description by searching for Open up a git repo and play around with this, here are some example that
-
Textual Popup Hack
As I am toying around with textual, I am wanting some popup user input The main issue is that when you are in a textual app, it kinda owns the textual is still
-
Install Obs Flatpak
Big announcement recently that obs studio now builds out to a flatpak, I did not have flatpak installed so the first thing I had to do was get Once I had flatpa
-
Github Markdown Now Supports Mermaid Diagrams
Mermaid diagrams provide a way to display graphs defined as plain text. You can define nodes like this in mermaid, and GitHub will now render
-
Git Rebase To The Beginning Of Time
Git has a built in way to rebase all the way back to the beginning of
-
Glances Can Watch Docker Processes
Glances is a system monitor with a ton of features, including docker processes. I have started using portainer to look at running docker processes, its a great
-
Revive Files From The Dead With Git
Git reflog can perform some serious magic in reviving your hard work You must git commit I really like to practice these techniques before I need to use them so
-
Glances Webui With Pipx
Glances has a pretty incredible webui to view system processes and information The nice thing about the webui is that it can be accessed from a remote system. Y
-
Git Reflog Is An Alias For Git Log -G
Right inside the git This epiphany deepens my understanding of git, and lets me understand that most Here are some git commands for you to try out on your own
-
Run Glances Without Install With Pipx
Glances is a fully featured system monitoring tool written in python. Out of Once you run this you will be in a tui application similar to htop. You can
-
Nested Requirements.Txt In Python
python requirements text files can in fact depend on each other due to Lets create two requirements files in a new directory to play with. Then add the followin
-
Modded Minecraft In Docker
In my adventure to put more homelab in docker, I moved our modded So far I have found all of our mods from under the hood docker is using wget to get the mod.
-
View Aws Event Bridge Rules With Visidata
Reading eventbridge rules from the command line can be a total drag, pipe it I just love when I start thinking through how to parse a bunch of json at the
-
Vim Remaps Use Cmd In Place Of :
Anyone just starting out their vim customization journey is bound to run into this error. I If you run You still need to map your remaps with a : if you do not
-
A Better Copy-Mode Bind For Tmux
The default keybinding for copy-mode To do this I just popped open my I have a full video on copy-mode you can find here. [
-
Python String Of Letters Is A String Of Letters, B...
In python, a string is a string until you add special characters. In browsing twitter this morning I came accross this tweet, that showed that https://twitter.c
-
Bluetooth At The Command Line On Ubuntu
One thing about moving to a tiling window manager like awesome wm or i3 is that Running Here is what I had to do to connect my headphones. Here is the output o
-
Read Stderr From Python Subprocess.Popen
I often run shell commands from python with Popen, but not often enough To get the stderr we must get it from the proc, read it, and decode the Now that we can
-
Simple Samba Share Setup
Samba is an implementation of the smb protocol that allows me to setup network I think the homelab is starting to intrigue me enought to dive into the path of T
-
Ag Silver Searcher Look Ahead And Look Behind
A super useful tool when doing PR It
-
Running A Minecraft Server In Docker
I In all these years, I My buddy Nic has been sharing me some of his homelab setup, and it I ended up running the first thing in the Readme that included a volu
-
Installing Rust And Cargo On Ubuntu 21.10 Using An...
Installing rust in your own ansible playbook will make sure that you can I try to install everything that I will want to use for more than just a This is how ru
-
Using A Python Markdown Ast To Find All Paragraphs
In looking for a way to automatically generate descriptions for pages I It When I originally wrote this post, I did not realize at the time that
-
Neovim Config For Git
Creating a minimal config specifically for git commits has made running The other thing that is engrained into my muscle memory is Here is the config that has
-
Python Dict Get
For an embarassingly long time, til today, I have been wrapping my dict Lets consider this example for prices of supplies. Here we set a variable of What I wou
-
Nix Versions By Commit Count
I was listening to Since many things still want to see a version number, there is one automatic
-
Find All Headings With Beautifulsoup
BeautifulSoup is a DOM like library for python. It Lets make a sample.html file with the following contents. It mainly has Lets import our packages, read in o
-
Lambda Function As A Kedro Node
I keep my nodes short and sweet. They do one thing and do it well. I Here are two examples, the first one Many times I just want to get the data in as fast as
-
A Good Use For Global .Gitignore
I Within the past year I have added some tools to my personal setup that are not Like any Once I had this file, I stowed it into Always stow your dotfiles, do
-
How To Properly Simulate Stow
-
Squoosh Cli
Today I discovered a sweet new cli for compressing images. ! First the main feature of squoosh is a What is even cooler is that once you have settings you are
-
Add New Dependencies To Your Kedro Project
As you work on your kedro projects you are bound to need to add more Before you start mucking around with any changes to dependencies make sure that New require
-
Practice Making Pipelines With Kedro
I am a huge believer in practicing your craft. Professional athletes [ Go to your playground directory, and if you don Install pipx in your system python. Thi
-
Tmux And Vim Clipboard For Ubuntu
One of the first things I noticed broken in my terminal based workflow moving First off you need to get I have tmux setup to automatically copy any selection I
-
Nix Rescues Modded Minecraft Night
With the latest version of minecraft it requires a very new, possibly I was getting this error trying to get a 1.12.2 forge server running. Caused by: java.lang
-
Tmux Hotkey For Copier Templates
I have added a hotkey to my copier template setup to quickly access all my I
-
Markata Filters As Telescope Pickers In Neovim
I often pop into my blog from neovim with the intent to look at just a To tie these into a Telescope picker you add the command as the NOTE telescope treates ea
-
Copier Tasks | Python Templating Post Run Task
Copier allows you to run post render tasks, just like cookiecutter. These are The example I have below runs an I have put the script in
-
Gradual Typing In Python
I https://youtu.be/Rk-Y71P Run Mypy as is, don Next we will add The final stage to this series is to add Make sure that you watch Anthony https://www.youtube.
-
Python Reverse Sluggify
In order to make an auto title plugin for markata I needed to come up ! Here I have a To turn this into a markata plugin I put it into a pre
-
Fuzzy Wallpaper With Fzf
I really appreciate that in linux anything can be scripted, including I set my default wallpaper with Leaning in on feh, we can use fzf to pick a wallpaper fro
-
Get Python Docstring With Ast
Getting docstrings from python First you need to load in some python code as a string, and parse it with You can then use To get all of the functions docstring
-
Python Respect The .Gitignore
Many tools such as ripgrep respect the Editors like vscode often do not include files that are .gitignored in pathspec pathspec
-
Rename Python Variables With Nvim
I don I first tried the nvim lsp rename, and it failed, Then I pip installed Once you have rope installed you can call rename on the variable.
-
Python Find Available Port
When running a python process that requires a port it
-
Python Functools Total Ordering
functools.total From the Docs: The class must define one of one of these and required to have this one Here is an example using the Enum I was working on the o
-
Implement --Pdb In A Python Cli
Adding a
-
Converting Markdown To Pdf With Pandoc On Linux
Converting markdown posts to pdf on ubuntu takes a few packages from the Here is an image of what converting this article over to a pdf looks
-
Python Enum
Python comes with an enum module for creating enums. You can make your Enum values can be auto incremented by importing auto, and calling Enum
-
Installing Pipx On Ubuntu
I recently paired up with another dev running windows with Ubuntu running in Open up a terminal and get your required system dependencies using the apt I like r
-
2 Minutes To Stow
Stow is an incredible way to manage your dotfiles. It works by managing When using stow its easiest to keep your dotfiles directory (you may name it Then each
-
Using Copier Answers To Rerun Templates Quickly
The copier answers file is a key component to making your templates Inside of my Inside my copier.yml I have setup my Once I change the I After rendering the
-
Making A Textual Widget From A Rich Renderable
Once you have made your sick looking cli apps with rich, eventually you are Install them from the command line. Import make a .py file and import them in it. If
-
Remove Vim Tab Characters
I It turns out they are tabs, and you can get rid of the little leading
-
Tmux Pop Size
tmux popups can be sized how you like based on the % width of the
-
Changing Copier Template Strings (_Endops)
I was completely stuck for awhile. copier was not replacing my template !
-
Copier Template Variables
I By default copier uses double square brackets for its variables. note Before running copier we need to tell copier what variables to ask for, I prefer to inst
-
Running Kedro On Ubuntu 21.10 Impish Indri
I just installed a brand new Ubuntu 21.10 Impish Indri, and wanted a But what I got back was not what I expected This is weird, why cant I run kedro new with pi
-
A Minimal Pluggy Example
Pluggy makes it so easy to allow users to modify the behavior of a framework I As long as the framework document the hooks that are available and what it Instal
-
List All The Files Containing A Phrase
One of the most useful skills you can acquire to make you faster at I Passing the flag Giving
-
My First Impressions With Pyenv
pyenv provides an easy way to install almost any version of python from I needed to install an older version of python on ubuntu I Based on the Readme it looked
-
Installing Homebrew On Linux
Installing brew on linux proved quite easy and got pyenv running for me I had never used homebrew before, honestly I thought it was a mac only That was it, now
-
Serve Html From Your Command Line
When I first moved to vim from and ide like vscode or sublime text one of my You will need a way to run another process alongside vim, here are a couple use bac
-
Opening Files In Vim From Output Of Command
Many command line tools can output a list of files, this is quite powerful. Telescope is the fuzzy file finder I use every day inside of neovim. Its pretty Thi
-
Finding Hidden (Dotfiles) Using Telescope In Neovi...
Finding hidden files using Telescope as you fuzzy file finder is not too I have this keymap set to help me list out all files including hidden see the
-
Installing System Nerd-Fonts With Ansible
Lately I This is one of those things that can be a total pain to get right on make sure your user fonts directory exists chech if the font you want exists on yo
-
Installing Packages With Ansible Only If They Do N...
Part of my neovim setup requires having the re-installing a bunch of things that are already installed can be quite check if the command is installed with reg
-
Adding __Rich__ Methods To Python Classes
Adding a
-
Fugitive Verbose Commit
Fugitive comes with a pretty sick way to commit files and see the diff at the example of a verbose commit in fugitive
-
Python Atexit
I