ZGAF

An SRE's Diary

A Solar Powered Weather Station - Part 1

Introduction ⛈️ First Post of 2020! Its been a while but I have been working on quite a few projects lately. Out of all the projects I’m working on, the one I’m most excited for is reviving my solar powered weather station. This was something I started back in 2017 but after some hardware failures (due to lightning strikes) I lost interest in continuing the project. Fast forward to 2020 and I’m ready to give it another go.

Adventures In Pseudorandomness

Introduction This all started with a discord bot I was building for friends. I was thinking of neat features to add when I found someone post a “star field” in another discord server. I thought it would be fun to have a algorithm that could generate random star fields on demand. Achieving this was fairly simple but got me thinking, is it possible to force the algorithm to generate a star field from a seed value?

Rocket League Goal Detection

Introduction This project came from the idea of how cool it would be to have a led strip behind my monitors flash when my team made a goal in rocket league. From the surface, with a little bit of help from a tool called Cheat Engine this seemed like a fairly straight forward task. After trying many different methods of finding the memory address that keeps your team score this quickly proved to be much harder than I had originally hoped.

Building a zip file cracker in Go

Disclaimer, I am not a professional programmer. Everything in this article was done as a learning exercise and could possibly be done better in many ways. Success with this code is not guaranteed! main.py This project originally started a long time ago after reading Violent Python. For those not familiar, Violent Python is a book about using python for hacking, pentesting, and forensic analysis. In this book there was a simple script on how to crack a zip file using a wordlist in python (https://github.

Introduction to ORM in Python with SqlAlchemy

Introduction Building custom queries for your database can be time consuming and complex. Object-Relational Mapping is a concept designed to ease this burden and make code easier to read. The job of an ORM is to take our data objects and take care of the heavy lifting for us. Today we will utilize the built in ORM features of the SqlAlchemy library for python. Installing sqlalchemy pip install sqlalchemy Declarative Base From within sqlalchemy we will utilize something called declarative_base.

Local Project Development With Dynamo DB

DynamoDB Core Concepts A little theory behind DynamoDB and NoSQL. DynamoDB does not implement a sql like language and how it stores data is fundamentaly different. Data is stored in the form of JSON documents and “fields” can be arbitrary (More on this later). DynamoDB has 3 core components: Tables - This is a collection of our json documents. Here our data will share common attributes (but we are not limited to pre-defined attributes).

SEO For Your Blog or Website

Introduction The biggest struggle for new blogs or websites can be getting viewers. Gaining an audience or community can be a long process that can sometimes take years. So how do you quickly get legitimate users to visit your site? Welcome to the concept of Search Engine Optimization. The idea of SEO is making modifications or optimizations to your website so that it is likely to be returned when people search for a topic.

Building a GoLang API in Lambda

Introduction In this tutorial we will install Amazon Web Services SAM(Serverless Application Model) for local go api development. This will allow us to test and debug our code without incurring any cost for AWS services. Before we get started you will need to install the aws-sam, docker, and golang. The scope of this tutorial will be limited to macOS and assuming you already have docker and golang installed. First we will install the aws-sam-cli with brew.