Week in Review 2022-04-10

Monday

yaleman/shrinky

Added tests to cover every line of the code, so I can auto-merge things now if they pass!

Released v0.0.4 to pypi as an official package.

yaleman/github_linter

  • fixed up some typing issues in the test suite
  • added a bandit workflow file for github_actions Python checks, to see what bandit testing will look like.
  • ran codeowners over all my repos
  • ran github_actions over all my repos and testing went booooom on a few things. Oh welllsssss… mainly just “yes, actually fix that test” and so forth - what this project is for!

yaleman/mqtt-monitor and yaleman/memes-api

Added a bunch of testing to allow things to update quicker when dependabot does its thing, because automation’s great!

[Read More]

Cloudflare and the Billion Requests

The Email

March 2022 Analytics Snapshot

We’ve aggregated data from 26 of your Cloudflare sites during the month of March. Cloudflare served 788.57 GB of data, and mitigated 2.04k firewall events.

I was like “wow, that’s a lot more data than usu… wait, over a ¿BILLION REQUESTS FROM JAPAN!?!?!?

For comparison, February 2022’s stats had 183.7 GB of data and 214 million requests from Japan. Ok, that’s still a load of requests, but 4x as much is weird.

[Read More]

Week in Review 2022-04-03

Tuesday

kanidm

Fixed an issue with kanidm group list that wasn’t logging because I’d used info!() instead of println!().

Wednesday

Realised (after it was pointed out to me by GitHub support) I was super stupid and had set the wrong “uses” string on my actions defintion, and that’s why they were all queuing and being weird.

Once I got that working… I continued to be stupid and break things until I just copied the config from something else and it was much less broken. If only I had a whole project built specifically to avoid this kind of inconsistency? 🤔

[Read More]

Week in Review 2022-03-27

Monday

github_linter

  • added github-linter-web as a script command to load the web interface easier
  • fixed a bug in the DB code, where it was derping on integer responses

Wednesday

github_linter

  • dependabot - configurator works now (ok, not really, see Friday’s fixes)
  • pyproject - fixed handler for certain value types
  • docs - now creates/updates a CONTRIBUTING.md

Thursday

pyaussiebb

  • Moved the dependency on pydantic from dev to main, because… it broke things.
  • Released v0.0.15 for this fix.

kanidm-builder

  • added support for Ubuntu Impish, which worked fine until I hit this unmerged PR in aptly, because they don’t support the new zst compressed packages 😭 So far there’s been this attempt, and also this one. One day they’ll actually patch it… or I’ll figure out how to make a repo another way.

Friday

github_linter

  • Added the ability to create a templated SECURITY.md file if it’s missing - applied the change to 128 repositories in one run! Also … seem to have broken the Auspost repo somehow, actions got super weird.
  • Fixed quoting issues when it does config updates to dependabot.

mqttgpio

  • Moved it into its own module instead of a single script, so it’s installable now.
  • Fixed a bunch of typing issues and made pylint and mypy happy.

auspost

  • Migrated to poetry packaging.
  • Bumped minimum python version to 3.7.
  • Did some typing fixes.
  • Seriously upset something in github actions… it’s been janky ever since.

qbtapi

  • fixed testing properly

goodwe2pvoutput

  • Fixing up mypy errors and some other jank - disabled typing on imports

Saturday

Had dinner at a great new Japanese place, Gurume in Gumdale. Damn good japanese food!

[Read More]

Week in Review 2022-03-20

Wednesday

pfsense-api-client

  • updated the docs
  • added support for a standalone requests.session object to support TLS ignorance
  • moved the login functionality out to its own function, so it’d get better documentation in the manual

memes-api

  • moved to aioboto3 to make things … work way better
  • fixed pagination issues where certain counts would page wrong
  • changed opengraph previews from the “full” image to the thumbnail to save some bandwidth and processing time for everyone

Thursday

Updated pyaussiebb to fix an issue acknowledging FetchTV services as a thing. Lots of testing and I re-learnt how to set up Home Assistant in a dev container so I can get someone who (thankfully) reported it as an issue and was willing to test it for me!

[Read More]

Recursion Is Fun Is Fun

So I’ve got an AWS Lambda function written in python designed to help auto-merge PRs that @dependabot has submitted. It queries all my github repositories, then auto-merges them based on particular configs. It’s done this way because then I don’t have to remember to configure each and every repository individually, and it does it in two stages:

  1. A scheduled execution.
    • This checks to see if it’s scheduled, then invokes the function with parameters specifying the repo to check.
  2. The subsequent “invoked” runs, which interact with the GitHub API to do the per-repo checks.

I’d recently made some changes and failed to test them properly - the “am I scheduled” was running, but ALSO the “run on a repository” check.

[Read More]

2022-03-13 Week in Review

Monday

Global Rest Day!

Assembling all the furniture things.

Tuesday

Hung out at the Mailroom and set up the internet, they nearly had to break down the little door in the wall where the infrastructure cable was hidden. Thankfully it all went well, and the speed’s good.

Later in the night I blocked myself from remote access to the router, awks. As the site-to-site VPN between sites still worked, I got back in through an SSH tunnel via an Access Point, which directed traffic to the router on port 22 from “inside” :success:.

[Read More]

2022-03-06 Week in Review

OK, I have to mention it. Fucking Russia. Seriously? Invading Ukraine? Get fucked. You insane pack of fucking morons. I don’t blame the boots on the ground - the’re clearly being treated like mushrooms.

🇺🇦 > 🇷🇺. I only hope as many people as possible get out of this alive.

Wednesday

I’ve been poking around at this idea in my head for a while, so I started yaleman/memes-api - basically shove images in an S3 bucket and it’ll make a little memes-library. I’ve got my own version at memes.yaleman.org and it works pretty well. CloudFlare’s in front of it, so it caches all the things, significantly reducing bandwidth required for the task.

[Read More]

2022-02-27 Week in Review

Uh, so it’s been a bit moist around here lately.

Monday

Um.. stuff? My NAS sync is finally working. Systemd services which can’t deal with usernames with the domain included are frustrating, but I worked around it by specifying the UID like an animal.

github_linter

  • Added a check for .github/CONTRIBUTING.md - creates a basic “here’s how to help” file
  • Ran mypy --strict and chased down a lot of issues. There were, and still are, many.

Tuesday

pyaussiebb

  • added the endpoints for get_orders() and get_order(int)
  • did a load of mypy yak shaving, --strict really kicking my arse, but it’s good.
  • hit bugs around running test_line_state against things that don’t support it, need to figure out if it’s worth checking for available tests before any invocation of a line test.

Traefik things

Someone mentioned traefik, I commiserated and quickly fell into the ADHD trap of “oh lordy a distraction and quickly had a config working for running the dashboard through the “normal” router. Something to document later, I still hate their docs/config style and lack of sensible examples. “Here is a full example” and then supplying snippets of code? No.

[Read More]

2022-02-20 Week in Review

Monday

After reading Casey’s post about ffmpeg, I finally got around to sorting out the install on my M1 macBook. Turns out, my homebrew install was all kinds of broken.

Tuesday

I picked up a Telstra Smart Modem Gen 2 (Technicolor DJA0231) for $20 from Facebook Marketplace, hoping to pick up some more speed on my terrible FTTN NBN connection. Alas, a waste of money and time, FTTN that is. What a criminal waste of our country’s time and money.

[Read More]