Newsfeed

How to push to two github remotes at once

For the purposes of backup and resilience, it may be useful to maintain two identical git remotes for a repo. Maybe one is on github, and another one is on a machine on another cloud. Then, you may want to automate pushing every change to the two repos at once.

git remote set-url       --push origin git@github.com:<username>/<reponame>.git
git remote set-url --add --push origin git@git:/home/git/repos/
git push origin

Push to multiple remotes. Add the hosted Git server as a remote: 

How to remove all .DS_Store, ._* files in a folder

If you want to recursively delete all .DS_Store files in a subfolder, you can run the following commands. First, see what is being deleted:

find . -name '.DS_Store' -type f

Then, delete those files:

find . -name '.DS_Store' -type f -delete

And also:

find . -name "\._*" -exec rm {} \;

.^.

An example spam email

Hi there,

I want to inform you about a very bad situation for you. However, you can benefit from it, if you will act wisely. 
Have you heard of Pegasus? 

This is a spyware program that installs on computers and smartphones and allows hackers to monitor the activity of device owners.  It provides access to your webcam, messengers, emails, call records, etc. 
It works well on Android, iOS, and Windows. I guess, you already figured out where I'm getting at.

The Importance of Writing Things Twice

In many domains, critical information is deliberately written down twice in two different places. While this might appear redundant, the practice is a safeguard against errors, loss, and failure. The underlying principle is simple: no single point of failure should be able to compromise the system.

A first functional test in Drupal 9 (test a redirect in a controller)

...of course this took longer than anticipated, but I have achieved this milestone, writing and executing a complete functional test in Drupal. It was not an easy, trivial test - and the path I took in implementing it highlights the gotchas and difficulty of writing such tests. As well, my process is likely not be unique, and the challenges I faced appear common. It there appears valuable for me to put down a quick writeup on quirks and tricks I saw along the way. In this article, I assume the reader is an intermediate Drupal developer.

20250911 Daily Scrum

Lost my laptop, possibly due to a virus, and now I have to rebuild it. Yeah, losing a laptop is hard. On the one hand, I have to be ready for such unfortunate events. And I actually am ready - I have a recent backup. I have non-recent backups, as well. Most important things are also duplicated in the cloud. Some heavy files like videos aren't backed up, but I'm actually not losing much there. And I managed to back up text files and important small files of the most recent days, via a tether. So I'm good, overall. 

How I set up the docker image with systemd and sshd

For testing ansible roles, I need a docker container that runs systemd or init - a container in which services can be enabled. I also need this container to be accessible via ssh. This way, I don't have to spin up cloud resources (which are not free) in order to test doing something on a remote.

[FIXED] problem installing ruby 3.4.5 on mac:

I see the following error when compiling ruby from scratch using rbenv:

In file included from debug.c:27:
./vm_callinfo.h:183:9: error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING'
        rp(ci);
        ^
./internal.h:89:72: note: expanded from macro 'rp'
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)

I updated rbenv and rbenv-build to latest, to no avail.

According to stack overflow, the solution, that worked for me, was to update xcode:

20250811 Daily Scrum

In order to improve my writing skills, I should write on a regular basis. The amount of writing is measured in either the number of words written, or the hours spent writing. Of course, there is an inherent conflict of interest, an inherent corruption when measuring work in such a way. See The Inherent Corruption of the Employee.

How will I promote and market my material? And for what purpose? What am I selling? What is the path (karate-do) that I'm pursuing, what is in my DNA? These and other questions are answered succinctly in The Core.