Some observations on technology, particularly FreeBSD.
How to send UTF-8 formatted emails using the standard UNIX mail tool.
Wordpress failing to fetch media during an import down to php-fpm chroot configuration.
/usr/local/lib/libpkg.so.3: Undefined symbol "openat" when using pkg to install software
Client getting 404 error with what looked to be a correct nginx proxy configuration.
Gmail performs additional SPF checks when collecting mail via POP3 that can cause spurious SPF failures.
FreeBSD's support for Amazon Web Services (AWS) is better than ever. This short tutorial shows you how to create a FreeBSD 10 VM on Amazon Elastic Cloud Compute (EC2) and use it to serve web page with nginx.
As part of administering our customer MySQL databases we often want to know the size of databases, tables and indexes. These are a few of the commands we commonly use on MySQL and Percona 5.6.
So yesterday a 20-odd year old bug in the popular `bash` shell was announced. In essence the bug allows a user to set a environmental variable it is possible to include additional _executable_ code.
A shell script to report replication lag on a mongo replication set
We used to use jailaudit to produce a portaudit for all our jails, but it would seem that `portaudit` and `jailaudit` need some work before they are happy in the newer ecosystem. However new _pkg ng_ tools can audit things directly including jails. This is great, but we were lacking an easy way to audit all our jails as we used to.
If you read around about logging in the wonderful Sinatra framework you'll tend to find something that suggests you just reopen STDOUT and STDERR in your `config.ru` file. That worked fine and has served me well for quite a while. All that changed with more recent versions of the Passenger Gem which I tend to use in concert with Nginx to deploy my Ruby web applications. You see Passenger now seems to use STDOUT to do a lot of chatting to itself on and re-directing it in the above fashion just breaks things. Here is the way I work around that.
I’ve noticed a trend that seems to becoming increasingly prevalent in all forms of websites and apps and that’s “not now”.
With the more recent versions of Passenger logging errors and information in Sinatra has become harder, here is the way I work around that.