Signing Your Git Commits by Default

Managing .gitconfig For Fun And Profit You know when you see that little green ‘Verified’ badge next to your commits on GitHub? The one that makes it feel all official? Notice how when you commit and push from the command line you don’t get that by default? If you’ve ever wondered why, this post is for you! Also if you realise that signing your commits is a good idea generally because something something security… It works for you too. ...

May 14, 2020 · 3 min · Josh J

Remote Development with VS Code

Pan-dev-mic? So, assuming that you’re living in the world right now you’re probably either working from home, furloughed or have been laid off. My condolences to those not in the first category, although financial troubles aside, enjoy your increased free time. I’m in the 100% working from home category, which means I have all of my Raspberry Pis, microcontrollers, PC builds and such laying around me but I have my work laptop hooked up to the main I/O in this room. Short of buying a high quality KVM that supports all the I/O that I would want to be able to switch between them quickly (shoutout Level1Techs store if you’re in the market), I don’t really want to have 3 laptops open at once to be able to access all the different dev environments I need for testing (I’ve definitely done that in the past though…). ...

May 8, 2020 · 8 min · Josh J

The Magic of Upgrading Pip Packages

Tell me if this rings a bell: You run something from pip and get told that your pip version needs an upgrade. You run pip install --upgrade pip and then think about how many other packages might need an upgrade… So, you run pip list --outdated and it returns a tonne of packages. You then spend a stupidly long amount of time trying to figure out why there’s no auto-upgrade option for pip which eventually results in you upgrading each package manually, cursing every time. ...

May 17, 2018 · 1 min · Josh J

WebHooks & Python & Discord! Oh My!

So I had a need earlier on today. The need for simple end-user notifications. This need has some backstory, however… The plex container that I run on Docker is basically bulletproof. It does everything super quickly and is easy to restart for updates or to clear out some disk I/O issue with my NAS. The NAS is the only thing that’s really causing it issues because it’s a 5 year old Drobo which is in serious need of an upgrade! So if the Drobo locks up and kills all of the I/O to it, the containers need a reboot. Oddly enough, the Drobo itself doesn’t need a reboot (or even to be remounted) but that’s an investigation for another day. Here, we come to my need: to alert users when the container was ‘down for maintenance.’ ...

April 23, 2018 · 3 min · Josh J

Easy Removeable Drive Detection with AutoIT

Week 2 of “Isn’t AutoIT Cool’ is a brief one. More of a code snippet than the last post. It’s something that I figured out when I was looking into exfiltrating data from a target machine. The idea was this: plug a flash drive into a PC, have it automatically run an exe (this was back in the autoexec.bat days so the theory was that you’d call said exe from autoexec.bat) and copy a bunch of interesting files to itself and then prepare for removal. This was back before the days of the USB Rubber Ducky as well (I think the USB Switchblade was the new hotness at that point). I’ll eventually get into my full script for this process, as it wound up being quite useful. Nothing quite as useful as the LEDs on the Bash Bunny or anything but this was many years before the Hak5 crew had those for sale. ...

February 18, 2018 · 2 min · Josh J