ZGAF

An SRE's Diary

A Solar Powered Weather Station - Part 2

Introduction I want to say first off that the weather station has been running for over a year and a half now with zero intervention on my part 🎉. This is not to say though that everything has been smooth sailing. I’ve actually had more issues with the API/Database side of things which is what this post is going to address. Ok, so the content of this post won’t actually address any problems (It most definitely will create several more) but I like to convince myself I am being productive.

Lets build an ROV! - Part 3

Introduction Ohh boy its been a minute but progress is being made! This post will be a little longer than the others and also picture heavy, you’ve been warned! We last left off assembling the battery and testing. The battery has been finished and the BMS (Battery Management System) wired up and installed. Additionally most of the electronics have been mounted, ballast system fleshed out, and a fancy cover for everything printed.

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.