just a jot

A semi-whenever series of posts

A method of loading scripts per page in Hugo

2016-09-05 development

Sometimes you find the need to make a specific page interactive with a bit of custom Javascript. This post explains how to do just that using the Hugo static site generator. Instead of loading the script globally for every page on the site, load it for that page and that page alone.

Continue reading

Handling contact forms on static sites

2016-09-03 development
I originally went the route of rolling my own contact form handler. But instead of setting up my own server (even if mostly already written the way I would want it, see contact-form on GitHub), daemonizing it, proxying requests from Nginx, and then remembering how I set it all up 6 months from now, I found another service. FormKeep look awesome, but their lowest pricing option is way more expensive than I need for a paltry little contact form on a site that barely gets any traffic. Continue reading

Wiki on BeagleBone Black

2015-01-03 development

I just picked up a Rev 4 BeagleBone Black from Micro Center for ~$40 with the intent of using it as a wiki server for both my own personal notes and those for my home and family. While the BeagleBone comes with an embedded 4GB chip pre-installed with Debian, I need more space to store my notes, so I also picked up a 16GB micro SD card.

Since the BeagleBone Black (BBB) is more powerful than the Raspberry Pi, I suppose you could use pretty much any wiki software that runs on the ARM architecture with reasonable performance. But, I wrote software specifically for this purpose: a Git-backed Markdown-based wiki in a single executable - Goiki. This is what I’ll be running.

Continue reading

Hosting multiple domains with Nginx in Ubuntu 14.04 on Digital Ocean

2014-07-12 development

So I was having problem with my previous server. Now that I’ve rebuilt everything I’ve realized that the problem I was having could have been easily fixed with my previous install. But, it doesn’t matter; it was time to upgrade from Ubuntu 12.04 to 14.04 anyway.

The goal of the server is simple: host two domains using Nginx. The problem I was having with the 12.04 install was that I could never get the second domain to serve up the right files; it would always serve up the first domain. This turned out to be a problem with the Nginx configuration. I thought this was the case at the time, but since the install wasn’t doing anything else anyway, I thought it was a good time to rebuild and start from scratch.

Continue reading

Octopress on S3

2013-07-11 development

I’m currently working on redoing a company website, moving from WordPress to Nanoc. Since the new website will be static, and mostly a single-pager for a while, we now have the option of moving from a traditional host to the Amazon S3 datastore. Before committing a company website to the process, I decided to go ahead and move this blog over to S3 (it uses Octopress) first. Here are a few notes that I jotted down along the way.

Continue reading
Older posts