windows Using a Yubikey for GPG in WSL (Windows Subsystem for Linux) on Windows 10 Previously, I wrote about using bash (WSL) on Windows 10 [https://justyn.io/blog/using-bash-windows-subsystem-for-linux-on-windows-10/]. I've changed some of my setup since then, but still use something similar for when I'm developing on a Windows machine. Until recently, I have
finances Automatically Sort and Align Ledger Transactions in VIM One of my goals for 2018 is to track all of my finances using plaintextaccounting [http://plaintextaccounting.org/]. For now, I am using ledger-cli [https://www.ledger-cli.org/] and vim. I won't go into detail on how to use ledger or plaintextaccount
home automation How to restart Home Assistant docker container automatically on failure Intro Quoting from the website: "Home Assistant [https://home-assistant.io/] is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control." I've been using Home Assistant for a while now, and
windows Using Bash (Windows Subsystem for Linux) on Windows 10 I recently reinstalled my main desktop computer, and decided to finally give "Bash on Windows 10", or the "Windows Subsystem for Linux", a real try. I'm hoping it will get rid of my need for Putty/WinSCP as
scripts Monitoring PiHole with Telegraf and Influxdb I recently installed Pi-hole [https://github.com/pi-hole/pi-hole] on a spare Raspberry Pi 3 [https://www.raspberrypi.org/]. Pi-hole essentially blocks most advertisements from devices on a network, by running dnsmasq [http://www.thekelleys.org.uk/dnsmasq/doc.html] with a custom set
plesk Rebuild missing SSL certificates from Plesk database I’ve had to deal with errors similar to this occasionally on Plesk servers: root@cent:# apachectl -t Syntax error on line 55 of /var/www/vhosts/domain.com/conf/13449678050.31729500_httpd_ip_default.include: SSLCertificateFile: file '/usr/local/psa/var/certificates/
automation Automated off-site Linux Backups using Duply and Duplicity Off-site backups are important, and even though I know this, I rarely implement them in my own servers. Lately, I’ve been setting up rsnapshot to do hourly and daily backups locally(to the same server), and I only do manual backups to remote
centos Xen file-based vs LVM-based disk images (benchmarks) I’ve been messing around a lot with Xen lately and have seen several different articles and forum posts debating the advantages over using file-based disk images, like /mnt/xen/VM01-disk.img, versus giving the VM direct access to a LVM partition. So, I
scripts Create Your Own URL Shortener I don’t really pay attention to twitter that often,but I did notice more and more people are starting to use personalized url shorteners. There’s a lot of free services out there you can use, but if you have somewhere you can
wordpress Installing and Updating WordPress via SVN I have quite a few WordPress [http://wordpress.org/] installations that I semi-manage on my server, and just recently realized how time consuming it is everytime a new version comes out. WordPress does let you update it to the newest version directly from the
scripts du2.php This is based off of du.php [http://justynshull.com/2010/08/du-php-php-disk-usage-script/], and is basically the same thing except it lets you click on folders to navigate through the directory structure and see how much space each directory is taking up. It uses
scripts du.php - PHP Disk Usage script I’m starting to copy my scripts from https://justynshull.com/oldsite/phpscripts.html but figured I’d start with this one so I can get the syntax hilighting/formatting down with wordpress. <?php // $a = shell_exec('df -h'); //echo getenv(
blog switch to vps and wordpress I decided to switch my website from basic html/php to WordPress, and at the same time moved it over to my VPS. It was being hosted on dreamhost before. I still need to install/configure subversion, and move some of my old stuff