ZGAF

An SRE's Diary

Failed Project Log - A DIY SBC

Introduction Around sometime in 2019 I was doing a lot of projects with the raspberry pi and got to thinking to myself; how hard would it be to make my own from scratch? I considered myself fairly competent with electrical theory (for a hobbyist) and had some experience in pcb fabrication. So I got to researching if any others had attempted similar feats. I quickly stummbled upon George Hiulliards linux powered business card and became so inspired I decided to give it a go myself (His write up can be found here https://www.

Lets build an ROV! - Part 2

Introduction If you read part 1 the rov has a frame, motors, and a housing for the electronics. The next issue to address is the power supply. I’ve been looking at doing a battery based on the 18650 cell for some time and finallly found a cheap supplier for 18650 cells. I grabbed a bunch of modem batteries from https://batteryhookup.com/ and got to work. Battery Design The ESC’s (Electronic Speed Controllers) for the thrusters are rated for 11.

Lets build an ROV! - Part 1

Introduction First post of 2021! So its been a while since the last post on the blog and I’ve started on a few new projects. One of them is something I’ve wanted to do since I was a kid and that is build a proper ROV. With the advent of the raspberry pi and easy access to code the past few years this project was something that seemed more feasible than before and I decided to dive in head first (pun intended).

A Solar Powered Weather Station - Part 1

Introduction ⛈️ We made it on Hackaday! https://hackaday.com/2020/07/13/solar-weather-station-listens-for-lightning/ 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.

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.