Thursday, January 29, 2026
- Indigo macOS home automation software actions that are assigned to a
Trigger,Scheduledor web UI element are not executed sequentially. Design accordingly to avoid race conditions.
Trigger, Scheduled or web UI element are not executed sequentially. Design accordingly to avoid race conditions.When you run a script as a systemd service, you have to define its environment variables in the service filem, e.g.
# Set your environment variables here
Environment="OJISAN_INCREMENTAL_UPLOAD_API_KEY=YOUR_ACTUAL_API_KEY_VALUE"
Environment="OJISAN_INCREMENTAL_UPLOAD_DB_USER=your_db_user"
Environment="OJISAN_INCREMENTAL_UPLOAD_DB_PW=your_db_password"
Environment="OJISAN_INCREMENTAL_UPLOAD_DB_NAME=your_db_name"
Environment="DB_HOST=your_db_host"systemd running services as a listsystemctl list-units --type=service --state=running --no-pager
A couple of terms that deal with perceptual distortions and cognitive bias:
Pareidolia is a specific form of apophenia.
With oh-my-zsh, you can store custom aliases in multiple (?per application) file under .oh-my-zsh/custom giving them .zsh file extensions.1
¶For example, in my hugo.zsh file, I have:
alias hnewtil="/Users/alan/Documents/blog/ojisan/scripts/newtil.sh"
alias gtojisan="cd /Users/alan/Documents/blog/ojisan; ls -l;"It’s possible using the -c command.2
python -c 'import foo; foo.bar()'Unix shell scripting is not one of my better-know areas of programming, but it’s on my list of things to learn. Some interesting bits about the date function.1
date +"%A, %B %d, %Y"date +"%A, %b %d, %Y"#!/bin/bash
tz=$(date +"%z" | sd '(\d{2})(\d{2})' '$1:$2')
echo $tztz=$(date +"%z" | sd '(\d{2})(\d{2})' '$1:$2')
md_date=`date +"%Y-%m-%dT%H:%M:%S"`date +"%Y-%m-%d"In the UNIX shell, slurping the output of the command into a variable is done this way:3