Category: Open Source Software

  • Unique UserAgent

    I saw this line in a server log this morning and thought it was humorous – if you’re going to spoof the UserAgent, why not do it right? 109.228.111.66 – $virtual_host.com – [06/Feb/2020:07:21:11 -0800] “GET /.env HTTP/1.1” 301 238 “-” “Mozlila/5.0 (Linux; Android 7.0; SM-G892A Bulid/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Moblie Safari/537.36” […]

  • MacBook Pro – Swollen Battery – Heat Management

    I’ve been using the MacBook Pro platform for daily business operations for years now. One issue I’ve suspected is that if you leave the laptop display closed for extended periods of time, the laptop can heat up enough to cause the battery to swell. This happened on my most previous MacBook and I’ve just noticed […]

  • Why is rails 5.2 joining to the same table twice?

    I was working on a Rails project for a client recently where I was trying to figure out why a model search operation was joining to the same table twice, resulting in a huge performance hit. The answer turned out to be an incomplete understanding of the ‘has_many’ ‘:through’ relationship. Given a model with the […]

  • Serving static content with Nginx via Docker

    I was playing around with the nginx docker container recently and wanted to serve the content from the local directory that I was in (pwd). This is how I ended up doing it: docker run –name nginx -d –rm -p 8080:80 -v $(pwd):/usr/share/nginx/html nginx:1.7 That will launch an nginx docker container and serve whatever is […]

  • Ubiquiti Cloud Key Upgrade – Can’t Login to Web UI

    TL;DR: A recent update to the UCK (Ubiquiti Cloud Key) controller software to add controller version caching caused the device to not start properly. Updating the unifi package via apt and rebooting solved the issue. SSH using the root account and your user password. apt update apt upgrade -y shutdown -r now ————— I recently […]

  • Rails timestamp search using datetime_field_tag

    I recently worked on an issue when creating a Rails form to search and display objects by timestamp and spent far too much time troubleshooting an issue with the datetime_field_tag form helper. The issue began with the following two lines in my view: Evidently, you cannot place more than one space between the name assigned […]

  • Windows Permissions – Unable to enumerate container…access denied

    One of the greatest reasons I prefer not working with Microsoft Windows is that the intent behind managing Windows seems to be to make it as difficult as possible for an administrator to do their job. In theory, I suppose the intent is to make it difficult for a determined hacker to break the defenses […]

  • Easy Jenkins Deployment on AWS

    Easy steps to install / configure Jenkins on AWS Amazon Linux: Install latest updates, set the hostname, and reboot. yum -y update hostnamectl set-hostname jenkins shutdown -r now Configure the Jenkins yum repository, install Jenkins, java, git, set Jenkins to start and persist on reboot: sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo sudo rpm –import https://pkg.jenkins.io/redhat/jenkins.io.key yum […]

  • AWS Updates – Security Hub and UDP Network Load Balancing

    Today Amazon released two features of note: 1. AWS Security Hub – This one is opportunity and peril at the same time. It is opportunity because it will give a set of standards and best practices a UI and allow anybody to view it and require enforcement from an implementation perspective. It is peril because […]

  • Terraform AWS Profile Confusion

    Ahh, terraform. What a useful tool. Unfortunately, there appears to be some confusion around the AWS profile, when using one. If you export the AWS_DEFAULT_PROFILE, you must also export the AWS_PROFILE to get the proper permissions… $ terraform -v Terraform v0.12.2 + provider.aws v2.7.0 $ terraform plan … Error: AccessDeniedException: User: arn:aws:iam::xxxxxxxxxx:user/${user} is not authorized […]