Posts
-
Converting .ogg files to .mp3 in Anki
iOS doesn't support .ogg files. If you have Anki cards with audio in that format, they'll need to be converted to .mp3. Here's how
-
Git: interactive rebase and get logs for a branch with the CLI
Asking Git to display all the logs for a given branch, or to squash commits within a branch, is not as straightforward as you might expect if you've never tried it before.
-
Creating a requirements.txt after installation
pip freeze > requirements.txt
is the canonical way to capture all the packages you have installed in a Python project. I am not sure why; it doesn't do what you expect. -
Disabling DJLint on non-Django projects
Finally found out how to stop the annoying "djLint is not installed for the current active Python interpreter" modal window on VSCode.
-
Changing python version in a running VSCode project
I was working on a python project with 3.11, and then found out I needed to upgrade to 3.12. Tried to deactivate my current venv, but VScode wouldn't let me - it threw a "Permission denied" error. The solution was pretty straightforward.
-
Running typescript in Jupyter notebooks with deno
I started this post to keep track of the process, thinking it was going to be a slog. Instead it took me all of 2 minutes and It Just Works. Mind. Blown.
-
Pygraphviz Woes on M1 Mac: Docker to the Rescue
I was trying to install pygraphviz on my M1 laptop using pip, but I found it impossible. Luckily the Dev Container VSCode extension allows me to use it with docker.
-
Using GH to generate a new repo
gh is a lovely CLI tool from GitHub that lets you manage your repos from Terminal, including downloading license and .gitignore files.
-
Clearing commands list, and other tales of bash history
Clearing the command history is good practice when, for example, one has mistakenly pasted sensitive info.
❯ history -c
will do the trick. More details inside. -
A Clasp template for local Google Apps Script projects, using copier
It is possible to develop Google Apps Script projects locally, on your machine, in Typescript, and sync them with Drive. Excited? Don't be. I am still not sure it's a good idea. Anyhow, here's a starter project using Python's Copier