Standing DevOps

👉

How to get multiple domains pointing to GitHub Pages using Cloudflare

I recently created a one-man-company to do IT Infrastructure consulting (I even got some cute business cards!). The name of the company is Curious Elephant and as part of creating the company in Portugal I get free DNS (curious-elephant.pt) and web hosting for a year. So I ditched the web hosting and wanted to simply point the company URL to this website. What you can learn from this post How not to add multiple custom domains to GitHub Pages How setup domain redirection in Cloudflare The naive approach As you may or may not have noticed this is done using Jekyll and GitHub Pages....

My MySQL Cookbook

Over the years I’ve been accumulating notes on how to do quick operations in a variety of technologies. These have been, up to now, for my eyes only, and they aim to be the documentation I wish I found online on how to quickly get something done in tech X. Today I decided to share some notes of one of those technologies: MySQL. Disclaimer: These notes are valid at the moment of writing and not for all versions of MySQL (I am testing 5....

How to make Jekyll multilingual

One of the few requirements that existed for this blog was to be multilingual. This is something that one can easily do with WordPress these days, but then I got turned on to GitHub Pages and one thing led to another and …. many hours later I had a blog that became multilingual, through mercilessly hacking the beautiful Whiteglass theme. Here is a brief explanation of how I made it happen....

Podcasts I listen to

I was asked the other day by a friend going on a long trip which podcasts I listen to. I typically listen to them while running, but they’re all safe for driving as well. Disclaimer: The list is entirely personal and subjective. What you can learn from this post Podcasts which I find interesting and actively listen to in different categories Entrepeneurial Side Hustle School From Scratch How I built this Open for business Startup Inc Uncensored Economics Freakanomics Radio...

An ansible role for Anchor CMS

What you can learn from this post How to install Anchor CMS How to write an ansible role ready for Ansible Galaxy What we want to do In broad strokes, this is what we want to do: Update your system apt-get update && apt-get upgrade Install the required packages apt-get install unzip vim apache2 libapache2-mod-php5 mysql-server php5-curl php5-mcrypt php5-gd php5-mysql Secure your mysql install...

Hi, I'm Miguel

{:height=“300px” width=“200px”} I am a Linux Systems Administrator and Cloud Architect (with a slant to DevOps methods and culture). I am also a slow moving digital nomad, photographer, European-Portuguese and co-founder of a food tour company. I provide consultancy in the form of training, infrastructure-as-code, cloud migrations and best practice implementations. I’ve been told that I’m a “sociable geek” as I aim to be the bridge between the tech and non-tech world....

New blog, new life

Welcome! This blog has had several iterations over the years. Most of its life was in a self hosted WordPress, a bit in Anchor, a bit in Ghost and finally in Medium. As the continuous experiment that it is, now it’s a mix of Jekyll and Github Pages fronted by the amazing Cloudflare. It’s fun and easy to blog again and I don’t have to pay anyone to host me, so expect a bunch of small posts coming up!...

How to deny hot linking from your AWS S3 files

There are many good people in the web, but there are also those who are lazy and instead of creating content themselves or even hosting it, they will want to abuse the existing stuff online. For example, say you have a bucket (originally) called mybucket and a file called … myfile.jpg. You uploaded the file to AWS S3 and now you are serving it from there through a webpage that we’ll call test....

S3/Cloudfront Access Denied

So you finally listened the SEO guys who keep saying that the images on your website have to be fast and you decided to move them from your small cloud server to an AWS S3 bucket? You managed to create the bucket and even enabled Cloudfront on that bucket so that the images (or other files) are not only in one region of AWS but everywhere in the world (well, every edge node on AWSs Content Delivery Network)....

Today I had some fun with cows saying fortunes

Today I had some fun with cows saying fortunes. If you are not in the Linux world, it will seem like I’ve been smoking some strange Dalmatian herbs, but if you have played at all with Linux you’ll know this happy face: _________________________________________ / You will be reincarnated as a toad; and \ \ you will be much happier. / ----------------------------------------- \ (__) (oo) /------\/ / | || * /\---/\ ~~ ~~ Now, who said geeks don’t know how to have fun?...