I previously hosted my domains with GoDaddy. In their service it was
pretty trivial to redirect a URL from one domain to another.
I own the domain bradleysearle.com
and I redirect it to https://codingpackets.com/about.
The process to do this is not as simple with AWS so in this post
I...
In this post I will show you how to get the AWS CLI install and setup
so that you can interact with AWS service via the CLI on your local
machine.
Installation
At the time of writing there are two version of the AWS CLI. It is
recommended to install version 2 of the software as all the...
Last year I migrated codingpackets.com to a
rails stack hosted on a digital ocean droplet. You can read about that
here. I really
love rails and was completely happy with that choice however, I am tired of managing
infrastructure for what is essentially a static site. Therefore I decided...
Its 2020 a new year and a new decade. I want to start the next decade
with a bang and not spend it like I spend the last decade working myself
to death. My goals for this year are primarily personal. I still have
career related goals but they are not my primary focus.
2020 Goals
10% body...
2019 turned out to be a pretty productive year. At the start of the year I set
myself a few goals outlined in this post.
How did I stack up? Read on to find out.
2019 Goals
Loose 20kgs
I started out the year at 89.9kgs and wanting to lose 20kgs. I finished the year at 71.9kgs
a loss of...
A Structure or struct for short, is a type defined by the user that stores a
collection of fields.
go
// create a struct
type stuffAndThings struct
// Instantiate a struct
st := stuffAndThings
// Use the dot (.) operator to access struct fields
st.stuff
st.things
Arrays are a collection of values of the same type.
go
// create an array that can hold 2 elements
var stuff [2]string
// assign values to the array
stuff[0] = "blah"
stuff[1] = "bleh"
// shortcut to create an array and assign values
stuff := [2]string
// let the go compiler dynamically...
Functions group operations into a unit of code.
A function is defined with the func keyword
A function name, its parameters and return types make up a functions
signature
go
// Basic function that accepts no arguments and returns nothing
func stuff()
// Function that accepts an...
There are a number of methods to define variables in Go.
Considerations
Variable names must begin with a letter or a number
When a variable is declared but not yet assigned it has a default value for its type
A variable that is declared must be used
Constants can only be assigned at the...
Ubuntu 1804 server uses netplan
for network management. This post will cover how to create a bridge interface with
netplan in order to have multiple virtual
machines share the same physical interface.
Create the following /etc/netplan/01-netcfg.yaml
file in order to configure the bridge...