Skip to content

Instantly share code, notes, and snippets.

@anth0d
anth0d / redis-check.sh
Last active September 4, 2022 11:39
2022-09-01 quick check of redis global replication
#!/usr/bin/env bash
R1="atlas-prod.tzijvp.0001.use1.cache.amazonaws.com"
R2="atlas-redis-eym20308-001.av3ops.0001.usw2.cache.amazonaws.com"
echo "do these numbers match? if not... data is missing"
redis-cli -h "$R1" DBSIZE
redis-cli -h "$R2" DBSIZE
@anth0d
anth0d / prototype-setup.md
Last active March 1, 2022 22:53
2022-03-01: setting up raspberry pi for interface with R-Net chair

Set up a prototype Pi

Use Raspberry Pi Imager application to put Raspberry Pi OS onto an SD card. Before writing the SD card you can click a gear icon and select the options that will enable SSH and auto-join Wifi so that you can connect remotely.

Give it a username and password, this will be used to SSH into the Pi later on so make a note of it. After inserting the SD card, I booted the Pi, plugged into an HDMI monitor, keyboard and mouse.

CAN HAT setup instructions

Follow all the setup instructions from Copperhill here to set up the CAN HAT:

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
@anth0d
anth0d / FreeNAS.md
Created August 12, 2017 01:06 — forked from jacobblock/FreeNAS.md
Ultimate FreeNAS Setup

FreeNAS

I started using FreeNAS in August 2013. It is fantastic piece of software and I have been really impressed by the upgrades just in the few months I've been using it. It looks like they recently went to a plugin system as of version 9 to make installing software easier for end users. I've ran into several issues related to plugins and user + group permissions so I decided to just use the available FreeBSD port system. After fiddling for a few days (now turned into months) I believe I have created something helpful for the community and anyone interested in picking up the port system. The sandbox nature of FreeNAS's jail system is especially helpful for playing around without having any consequence on your core system.

Here are straight-forward instructions to setting up a bunch of different software on FreeNAS. If you make a terrible error, just throw up another plugin sandbox and repeat.

ToC