Overview for 'development'
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…
Written by Michael Brooks - RSS Feed
/ Original link
on Jul. 9, 2021
I had no idea that JetPack Carousel exsited until they released a blog post about updates to it. Apparently, there are many under the hood improvements, plus mobile and table improvements as well. Find out more information here. Post Image Carousel Carousel tweet – Find out how to create 1 awesome…
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…
Written by Rob Allen
/ Original link
on Oct. 21, 2020
I recently needed to modify the emails that a client project sends out. It was set up to send via SMTP and so the easiest way to do this for me was to add a local MailHog instance and point the application at it. Manually running via Docker The quickest and easiest way to do this is via Docker. Man…
Written by Rob Allen
/ Original link
on Aug. 13, 2020
There are many scripts that recursively execute php -l on a set of files or directories. This is mine: #!/usr/bin/env bash set -o nounset # Recursively call `php -l` over the specified directories/files if [ -z "$1" ] ; then printf 'Usage: %s ...\n' "$(basename "$0")" exit 1 fi ERROR=false SAVEIFS=…
Written by Rob Allen
/ Original link
on Aug. 5, 2020
I have an external drive attached to the USB hub on my Thunderbolt Display that I use to clone my laptop's internal drive every night using the schedule feature of SuperDuper!. At the appointed time, SuperDuper! will mount the external drive, clone the internal drive and then unmount the external…