Setting a user’s supplementary groups on Linux

A user on Linux belongs to a primary group, which is specified in the /etc/passwd file, and can be assigned to multiple supplementary groups, which are specific in the /etc/group file. The usermod command can be used after creating to user to assign them to additional groups(s).

Temporarily changing the auto increment increment in MySQL

It’s possible to temporarily change MySQL’s auto increment increment value to something other than the system setting. This might be useful if (like me) you have two MySQL databases set up in a master-master relationship with an increment of 2, but need to increment a table in 1s.

How to change the remote url for your local git repository

If you’ve moved a git repository from one git hosting service to another, transferred from one account to another at the same service, or moved your own repository servers around the place, you’ll need to change the remote url for you local repository to be able to continue pushing and pulling changes, etc.