Skip to content

Instantly share code, notes, and snippets.

View thebluesnevrdie's full-sized avatar

Cody Crawford thebluesnevrdie

View GitHub Profile
@semhoun
semhoun / install.sh
Last active September 22, 2025 20:48
Pirate Audio / Raspberry Pi 0 W : Full installation
#######################
### ==> Global params
#######################
PRETTY_NAME="Pirate Audio Pi"
SPOTIFY_USER=""
SPOTIFY_PASS=""
HOSTNAME="`echo "$PRETTY_NAME" | awk '{print tolower($0)}' | sed 's/ /-/g'`"
#######################
### ==> Raspberry config
@pahud
pahud / waf_update_ip_set.py
Last active October 25, 2023 23:18
WAF update ip set
#!/usr/bin/env python
import boto3
client = boto3.client('waf-regional', region_name='us-east-1')
ipSetId='<YOUR_IP_SET_ID>'
def getChangeToken():
response = client.get_change_token()
@ysr23
ysr23 / pi zero W ap setup.md
Last active June 6, 2025 18:13
Raspberry Pi Zero W Access Point (ap) setup

These are my own personal notes on how i setup a Pi Zero W as an access points it is a blatant copy of this: https://gist.github.com/tcg/0c1d32770fcf6a0acf448b7358c5d059 but is just missing a couple of things from: http://imti.co/post/145442415333/raspberry-pi-3-wifi-station-ap and like tcg, this is not intended as a guide but notes as i will invariably have to rebuild this sometime and i have broken biscuits for brains.

1. making the pi zero accesible from a computer

this is really just the same info as here https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a

  • flash raspbian lite to sd card
  • unplug and replug sd card adapter if necessary to see 'boot' drive
  • edit cmdline.txt add: modules-load=dwc2,g_ether after the word rootwait
  • edit config.txt and add dtoverlay=dwc2 to the end of the file
  • create a blank file called ssh
@angstwad
angstwad / dict_merge.py
Last active December 22, 2024 16:02
Recursive dictionary merge in Python
import collections
def dict_merge(dct, merge_dct):
""" Recursive dict merge. Inspired by :meth:``dict.update()``, instead of
updating only top-level keys, dict_merge recurses down into dicts nested
to an arbitrary depth, updating keys. The ``merge_dct`` is merged into
``dct``.
:param dct: dict onto which the merge is executed
:param merge_dct: dct merged into dct
@acolyer
acolyer / service-checklist.md
Last active September 24, 2025 07:57
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?