Build Fedora AWS images in GitHub Actions with Image Builder

GitHub Actions provides infrastructure for all kinds of amazing automation. Anyone can test software, build packages, deploy applications, or even publish a blog (like this one!) with a few snippets of YAML. I often use it to bundle my software in a container after testing it. 馃 One day, as I was working through another Packer configuration, I wondered if there was a way to build cloud images directly in GitHub Actions without building an instance in the cloud, making tons of changes, and snapshotting that image....

2021-08-06 路 7 min 路 Major Hayden

Quickly post gists to GitHub Enterprise and github.com

The gist gem from GitHub allows you to quickly post text into a GitHub gist. You can use it with the public github.com site but you can also configure it to work with a GitHub Enterprise installation. To get started, add two aliases to your ~/.bashrc: alias gist="gist -c" alias workgist="GITHUB_URL=https://github.mycompany.com gist -c" The -c will copy the link to the gist to your keyboard whenever you use the gist tool on the command line....

2014-08-08 路 1 min 路 Major Hayden

Automate CentOS 6 deployments with CIS Security Benchmarks already applied

A coworker heard me grumbling about Linux system administration standards and recommended that I review the CIS Security Benchmarks. After downloading the Red Hat Enterprise Linux 6 security benchmark PDF, I quickly started to see the value of the document. Some of the standards were the installation defaults, some were often forgotten settings, and some were completely brand new to me. Automating the standards can be a little treacherous simply due to the number of things to adjust and check....

2013-04-26 路 1 min 路 Major Hayden

Fedora 17 released, XenServer kickstarts updated

Fedora 17 was released yesterday and you can download it now! In addition, I made some edits to my kickstarts repository on GitHub to match up with the final release of Fedora 17. The kickstart took less than ten minutes to complete even with a remote repository configured for RPM packages. Fedora & XenServer users: Would posting an actual XVA file for download make it easier for you to get started?...

2012-05-30 路 1 min 路 Major Hayden

mysql-json-bridge: a simple JSON API for MySQL

My quest to get better at Python led me to create a new project on GitHub. It鈥檚 called mysql-json-bridge and it鈥檚 ready for you to use. Why do we need a JSON API for MySQL? The real need sprang from a situation I was facing daily at Rackspace. We have a lot of production and pre-production environments which are in flux but we need a way to query data from various MySQL servers for multiple purposes....

2012-03-29 路 3 min 路 Major Hayden

Compare commits between two git branches

I found myself stuck in a particularly nasty situation a few weeks ago where I had two git branches with some commits that were mixed up. Some commits destined for a branch called development ended up in master. To make matters worse, development was rebased on top of master and the history was obviously mangled. My goal was to find out which commits existed in development but didn鈥檛 exist anywhere in master....

2012-03-15 路 1 min 路 Major Hayden