Skip to content

Instantly share code, notes, and snippets.

@adapowers
adapowers / unget-setup.sh
Created November 21, 2024 22:36
install mediainfo and mosh on unraid via ich777's un-get plugin
#bin/bash
/usr/local/sbin/plugin https://github.com/ich777/un-get/raw/refs/heads/master/un-get.plg
# Add ponce.cc to sources (needed for mediainfo)
echo "https://ponce.cc/slackware/slackware64-current/" >> /boot/config/plugins/un-get/sources.list
# Update sources list
un-get update
echo "Done! To transition fully to un-get, run: un-get cleanup"
@adapowers
adapowers / qbitstats.py
Created November 18, 2024 23:42
qbitstats.py - get UL/DL stats by tracker
import requests
from collections import defaultdict
from urllib.parse import urlparse
def human_readable_bytes(size):
for unit in ['B', 'KB', 'MB', 'GB', 'TB']:
if size < 1024:
return f"{size:.2f} {unit}"
size /= 1024
return f"{size:.2f} PB"
@adapowers
adapowers / orangepi_dietpi.md
Created July 26, 2023 16:45
OrangePi Zero 2 Debian Bullseye to DietPi

Prerequisites

  • Card flashed and working
  • Logged in on SSH with root / orangepi

Replace sources

Factory image ships using http://mirrors.tuna.tsinghua.edu.cn, which gives 404s and is slow for US customers besides.

@adapowers
adapowers / caddy_asusmerlin.md
Last active July 20, 2023 23:53
caddy on Asus-Merlin AX86U

Assumptions:

  • JFFS on and persistent
  • EntWare installed on USB
opkg install go

mv $HOME/go /opt/home # So we don't run out of space
export GOROOT=/opt/bin/go # Go is here
export GOPATH=/opt/home/go # XCaddy will go here
@adapowers
adapowers / mono_m1.md
Last active June 28, 2023 00:40
Mono (for Sonarr etc.)
brew install mono

sudo mkdir -p /Library/Frameworks/Mono.framework/Versions/Current/bin

ln -s /opt/homebrew/bin/mono /Library/Frameworks/Mono.framework/Versions/Current/bin

Then install Sonarr.

@adapowers
adapowers / home-assistant-m1.md
Last active June 19, 2023 19:28
Home Assistant on M1 Mac

Prerequisites

Homebrew

Install and load into zsh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/server/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
@adapowers
adapowers / Ethical-Content-Slack-CoC.mdown
Last active October 9, 2022 06:16 — forked from mjmetts/Content-UX-Slack-CoC.mdown
A Code of Conduct for the Ethical Content Slack Group

Code of Conduct

Our mission is to foster connections among content professionals who are interested in creating more ethical and inclusive user experiences together. Sharing of content and personal projects related to our mission is acceptable and encouraged.

The Ethical Content Slack group is dedicated to providing a harassment-free experience for everyone. We do not tolerate harassment of participants in any form.

This code of conduct applies to every member of the Ethical Content Slack group. Anyone who violates this code of conduct may be sanctioned or expelled from the Ethical Content Slack group at the discretion of the admin team.

Ethical Content Slack group members are responsible for knowing and abiding by these rules.