https://paultraylor.net/blog
7 posts
Tech
Subscribe via RSS
While nearly everyone likely has their own sisyphean task, one of mine is the search for the perfect inbox. Trying to have just one inbox to look at for the day has continued to be a challenge, even since I wrote about it in 2020 . Recently, I have looked at my daily workflow, and how I might converge on a single, primary inbox. Apple Reminder + EventKit Since I am on the Apple ecosystem already, I think I will try to standardize on Apple Reminder and by extension eventkit which will let me…
I use saltstack to manage deployment of docker containers in my homelab. For two of my cloud servers, I am running them in memory constrained environments for cost reasons, and typically only run the minimum required there. Since I wanted to wrap the docker_container module, I started by creating my own state in _states/docker_customized. I can do a simple naive version, just by using setdefault # _states/docker_customized.py def running(name, **kwargs): kwargs.setdefault("mem_limit", "1024M")…
For the past many years I have used various notification methods in my projects. Prowl Prowl is one that I have been using for the longest time. It has a simple API that can be used easily from curl and other applications. # https://www.prowlapp.com/api.php#add import requests requests.post( url="https://api.prowlapp.com/publicapi/add", data={ "apikey": api_key, "application": "my-application", "event": 'Event Title', "description": 'Event description', "priority": 0, # Optional "url"
While the entire systemd project has historically been rather polarizing, I have found it to be easier to maintain for my own environments. When working on services on windows or MacOS , I have come to miss having journald when running services. MacOS launchd services let you StandardOutPath and StandardErrorPath, each application can set them to whatever path they want. While applications can directly use MacOS unified logging, I wanted to prototype an idea of launchd handling directing files.…
Due to the flexibiilty of Django , I will often use it in places that are not a normal web app. A combination of the Django ORM and admin commands makes a Django project a useful place to collect useful scripts. In the past I would often add things to Cron, but due to the tasks framework I have started to add some jobs there. To make it even easier to call tasks, I hooked up Alfred to my Django project. Zatsumu 雑務 Every project needs a name, and since this is a private project, any name is…
The XDG Base Directory Specification was first published in 2003 as version 0.6 . There were minor updates in 2010 with 0.7 and in 2021 with 0.8 . While applications that pre-date the specification do not annoy me so much, newer applications that ignore it are a specific pet peeve of mine. While this specification typically only applies to Linux, many MacOS utilities are cross platform and could easily adopt the same standard, or use some of the MacOS locations. Instead, we have many, many, ...
Entry_points are used in a lot of my projects as they’re a fairly simple way of adding plugin points. Recently I was wondering if there was a tool or site that maps them to PyPI though I am not aware of any of them. I spent a little time prototyping with an idea to see how much of it might be feasable. PyPI provides a json api with basic meta data, but understandably, it’s unreasonable to expect for them to include everything. Even though our entry-point data is not included, we can use th...