Skip to content

Instantly share code, notes, and snippets.

@hypafrag
hypafrag / ps4-send.py
Last active August 20, 2026 17:27
Serve local .pkg files to PS4 Remote Package Installer with space-free URLs. Files are renamed to <md5-of-abs-path>.pkg so paths never contain spaces. Connections are restricted to the PS4 IP only. Exits 5 seconds after the last PS4 connection closes. Usage: python3 ps4-send.py file1.pkg [file2.pkg ...]
#!/usr/bin/env python3
"""
Serve local .pkg files to PS4 Remote Package Installer with space-free URLs.
Files are renamed to <md5-of-abs-path>.pkg so paths never contain spaces.
Connections are restricted to the PS4 IP only.
Exits 5 seconds after the last PS4 connection closes.
Usage: python3 ps4-send.py file1.pkg [file2.pkg ...]
"""
@hypafrag
hypafrag / shairport-sync-debian-setup.sh
Last active December 2, 2019 17:54
Install latest shairport-sync from source on debian-based linux (including raspbian)
#!/bin/bash
sudo apt-get update
sudo apt-get install build-essential git xmltoman autoconf automake libtool libdaemon-dev libpopt-dev libconfig-dev libasound2-dev libpulse-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libsndfile1-dev
git clone https://github.com/mikebrady/alac.git
git clone https://github.com/mikebrady/shairport-sync.git
cd alac
autoreconf -fi