Hexo Deploy With Babun
I have recently switched to Babun. It’s, IMHO, the best Windows shell so far. Combine it with TidyTabs and you have a very nice solution. But I was unable to get hexo deployment to work well with it so I had to use git bash. git bash would show a popup asking for my SSH key password while Babun wouldn’t.
I found the solution here, just enable the SSH-agent plugin in zsh
1# ~/.zshrc
2plugins=(git, ssh-agent)
You will just be prompted for the password of your SSH key when you start Babun.
No Output From Drush
A while back Drush stopped working on my servers and it would just return without doing anything. Today I decided to finally debug the issue. Turns out the FreeBSD port just fetches the Phar archive and installs it.
After digging around I found the following post which says that Suhosin blocks Phar file execution. The fix turned out to be quite simple; Just edit the Suhosin ini file (in FreeBSD it’s /usr/local/etc/php/ext-30-suhosin.ini) and add the following after the “extension” line:
1suhosin.executor.include.whitelist = phar
And you’re back in business :)
New Domain, Same Great Content
I’ve been wanting to get shami.blog ever since the generic TLDs have been introduced.
Now I finally have it, welcome to the new domain :).
XBOX LIVE With pfSense
A couple of months ago I switched from running OpenWRT on a TL-WDR4300 to running pfSense on a Netgate RCC-VE 2440. Not that OpenWRT is bad, it’s only because I’m a big fan of FreeBSD and I’ve been wanting to run a similar setup ever since I discovered custom firmware like DD-WRT and afterwards m0n0wall and Soekris. When I finally decided to get the hardware I thought Netgate had a better offering and I went for it.
Hexo Photo Gallery
So while I was migrating my data over from wordpress there were a few posts with photo galleries. The options I had were to write each photo gallery by hand or use the photos array in the front matter. What I did was change the photos array a bit and added the following code as a module
Responsive Youtube Videos With Hexo
Update: I have since moved to Hugo with Tailwind CSS and not sure if this code is still valid.
So now that I have finally finished fixing my content migration issues I can get back to writing.
While checking my old posts I noticed embedded using the {% youtube %} tag looked like this:
Fixing Certificate Verification Error After Upgrading to PHP 5.6
Since PHP 5.5 reached it’s end of life a while back I started upgrading my servers to PHP 5.6. This has caused some issues but the worst was:
1error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Booting BSD Router Project On The Netgate RCC-VE 2440
I have recently acquired a Netgate RCC-VE 2440 which I intend to use as a router/firewall for my house. But I thought I might as well play with it a little before I do so. One of the things I wanted to test was the BSD Router Project to have in place of one of the routers we have here at work but I couldn’t get it to boot, it would always free with just a “\”.
FreeBSD SCP Chroot
Quick one here, if you want to create an SCP only user on FreeBSD just do the following
Welcome To My New Blog
Update: I have since migrated to Hugo which seems to be better maintained and generally easier for me to update. I have also started using Texts more for editing Markdown
I haven’t been very active on this blog over the years, one of the reasons was Wordpress itself; As nice as it is, I grew sick of updates always breaking something. Another thing that always made me feel uneasy was the email I got every once and a while from my blog telling me it updated itself. True, this is good when people ignore their blogs but I didn’t feel in control of my own blog any more and sometimes I wouldn’t have enough time to debug any plugins that broke when the blog decided it was time for me to upgrade.