Search results for: “code”

  • Manual letsEncrypt for CPanel

    Jump to Renewal Instructions Additionally, EFF has deprecated use of aptitude/yum/dnf/etc package managers for deploying Certbot on Debian-based systems. Instead, they recommend use of Snap. At work I recently collaborated with our hosting provider to move our company website to a version of cPanel. Up until this time, there has been no way of running our site on…

  • DMX for actual Electrical Engineers

    So it’s been coming up recently that our church media department has been buying “OpenDMX USB Dongles” for upwards of $80. I was mortified, especially after seeing this USB device, opening up the sheet metal project box and finding it to be a simple 2-stage USB to RS-485 protocol bridge with no programmable intelligence whatsoever.

  • A Fun Adventure in PGP

    So I got curious about PGP keys and signing and encrypting using them. I managed to figure out how to use the semi-popular gpg4win (the standard windows port of GnuPG) with its built in Kleopatra GUI, Outlook add-ins and all the other fun stuff.

  • LetsEncrypt List of Useful Commands

    Here are a few letsencrypt commands that I’ve found useful in the past few months of trying it out.

  • Typecasting struct to char* for Idiots Like Me

    Want to cast from a struct to a character string? Seen all those posts out there suggesting that reinterpret_cast will work, but is unsafe? Yeah, I tried it. Yeah, it’s unsafe.

  • Embarcadero TThread Works Just Fine

    I’ve been annoyed for a large amount of time (years in fact) over some of our software we use and sell. In essence, what we have is a TCP GUI that communicates on a 250ms timer with a microcontroller that’s serving up a two-way communications protocol over ModBus FC23 – we send commands either to…

  • PHP Access Control List

    A quick little Access Control List (ACL) snippet I made for PHP/HTML. Enjoy! <?php $acl = array( // Populate with IP/Subnet Mask pairs. // Any zero bit in the subnet mask acts as a wildcard in the IP address check. array(“192.168.10.24″,”255.255.255.255”), ); $acl_allow = false; for ($i = 0; $i < count($acl); $i++) { $ip2chk…

  • Linux – Find what is Preventing You from Unmounting a Drive

    Disclaimer: I’ve had this problem for probably four months, ever since I started running Plex Media Server on my headless linux machine at home, whilst storing all my actual media on a nice external portable drive. Usually I just yank it, but then I watch the drive letters run themselves up obscenely high before I…

  • Expired Domains – A Headache (but a learning experience)

    Hey all! It’s been a few months, I know. But I wanted to share an experience I had with my recent domain name headache. So as you may or may not know, I’ve owned ppsstudios.com since May 2013. I purchased it via Google Apps which in turn set my registrar to eNom. Both are useful services and work…

  • Integer Math – Converting to Binary

    Yes, I realize this is a beginning digital logic concept, but I need somewhere to write this so I don’t forget again.