Skip to content

Instantly share code, notes, and snippets.

View thebluesnevrdie's full-sized avatar

Cody Crawford thebluesnevrdie

View GitHub Profile
@vantrong291
vantrong291 / fix_amd_card_ubuntu.md
Last active February 26, 2026 16:31
Installing AMD GPU Drivers on Ubuntu 22.04 for AMD Graphics Cards

Installing AMD GPU Drivers on Ubuntu 22.04 for AMD Graphics Cards

This guide walks you through installing AMDGPU drivers and configuring kernel parameters (mem_encrypt=off and amdgpu.sg_display=0) to ensure stable graphics on AMD systems.


Step 1: Update system

sudo apt update && sudo apt upgrade -y
@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 February 23, 2026 21:17
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 February 16, 2026 02:23
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?