Skip to content

Instantly share code, notes, and snippets.

Flexible, extensible and resilient MDADM and LVM based storage on Linux

Quick Intro

What

A flexible storage solution on a Linux distro, using off the shelf tools: raid (mdraid), LVM and parted.

Why

@dandanio
dandanio / checkrbl.py
Last active May 8, 2023 19:11
RBL lookup script written in python3 with threading for speed
#!/usr/bin/env python3
import argparse
import socket
import threading
rbls = [
'access.redhawk.org',
'all.s5h.net',
'all.spamblock.unit.liu.se',
@dandanio
dandanio / README.md
Created June 7, 2021 02:37
Headless A2DP Audio Streaming on Raspbian Stretch with a Raspberry Pi Zero W and a HiFiBerry DAC+ Zero

Headless A2DP Audio Streaming on Raspbian Stretch with a Raspberry Pi Zero W and a HiFiBerry DAC+ Zero

About

This gist will show how to setup Raspberry Pi OS Buster running on a Raspberry Pi Zero HW with a HiFiBerry DAC+ Zero, connected to a regular set of computer speakers for a DIY Streaming Bluetooth Speaker. You can use any device with a A2DP capability like a phone, a tablet or your laptop to stream audio. Towards the bottom, I added some bonus features like low latency optimization so audio played has minimal lag.

Motivation

There are a million and one guides and gists out there but none of them actually does what I wanted to do "out of the box" - there are always bigger or smaller hacks involved. I wanted a turnkey solution that would not relay on any external scripts of extra code. It is up to date as of June 2021.

@dandanio
dandanio / rtl8812au.sh
Last active July 13, 2020 04:14
Compiling rtl8812au USB WLAN driver for Raspberry Pi 3 B+ on raspbian buster
sudo -i
apt update && apt upgrade
apt install raspberrypi-kernel-headers libelf-dev build-essential git
apt install dkms
cd /usr/src/
git clone https://github.com/gordboy/rtl8812au-5.6.4.2.git
dkms add -m rtl8812au -v 5.6.4.2
ARCH=arm dkms build -m rtl8812au -v 5.6.4.2
dkms install -m rtl8812au -v 5.6.4.2