PHPnews.io

Overview for 'roballen'

Add TouchID authentication to sudo

Written by Rob Allen / Original link on Nov. 17, 2021

Now that I have a TouchID enabled Mac, I want to be able use TouchID for sudo access. There's a pam module available, so it just needs enabling: Edit /etc/pam.d/sudo Add a new line under line 1 (which is a comment) containing: auth sufficient pam_tid.so(Leave all other lines in this file.) That's…


Quick script to (re)create my python virtualenv

Written by Rob Allen / Original link on Sep. 8, 2021

When working on rst2pdf, I use pyenv as I've written about before. Recently, I've found myself needing to recreate virtualenvs for various Python versions and then recreate them to easily reset the list of packages installed into them via pip. To my my life easier, I created a script that I can run…


Changelog generator for GitHub milestones

Written by Rob Allen / Original link on Aug. 18, 2021

For many years now, I've been using Matthew Weier O'Phinney's changelog_generator script to generate an easy-to-read list of changes for a given milestone. Time has moved on; the Laminas project now uses Laminas Automatic Releases and Matthew hasn't updated his script since 2013. Since PHP 8, warni…



A few Git tips

Written by Rob Allen / Original link on Mar. 30, 2021

I don't do that much that's clever with git, but I've found the following helpful. Automatically prune When you do a git fetch or git pull, you can ask it to remove remote tracking branches for a branch that has been removed on the remote by using the --prune flag. This can be automated globally wi…


OpenConnect on Mac

Written by Rob Allen / Original link on Mar. 23, 2021

One of my clients has recently moved to AnyConnect VPN and I've been having routing problems with the official Mac client. As my colleagues on Linux on the project have not had these issues, I investigated and installed the OpenConnect client. These are my notes after scouring the Internet to set…