Skip to content

Instantly share code, notes, and snippets.

View ffainelli's full-sized avatar

Florian Fainelli ffainelli

View GitHub Profile
@Michcioperz
Michcioperz / Dockerfile
Created September 2, 2020 16:27
librespot for openwrt netgear r6220
FROM debian:buster
RUN dpkg --add-architecture mipsel && apt-get update && apt-get install -y wget xz-utils
RUN wget https://downloads.openwrt.org/releases/19.07.2/targets/ramips/mt7621/openwrt-sdk-19.07.2-ramips-mt7621_gcc-7.5.0_musl.Linux-x86_64.tar.xz && tar xf openwrt-sdk-*.tar.* && rm openwrt-sdk-*.tar.*
ENV STAGING_DIR=/openwrt-sdk-19.07.2-ramips-mt7621_gcc-7.5.0_musl.Linux-x86_64/staging_dir
ENV PATH=/openwrt-sdk-19.07.2-ramips-mt7621_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/bin:/root/.cargo/bin:$PATH:/usr/bin:/bin:/usr/sbin:/sbin
RUN wget https://sh.rustup.rs -O rustup-init && chmod +x rustup-init && ./rustup-init --profile minimal -y
RUN rustup target add mipsel-unknown-linux-musl
RUN apt-get install git --no-install-recommends -y
RUN git clone https://github.com/librespot-org/librespot
WORKDIR librespot
@bonzini
bonzini / mbox_split.py
Last active March 30, 2024 02:40
Split a mailbox into separate patch files, stripping the transfer encoding and minimizing the headers along the way.
#! /usr/bin/env python3
# mbox_split.py
#
# Split a mailbox into separate patch files, stripping the transfer encoding
# and minimizing the headers along the way.
#
# Written by Paolo Bonzini <pbonzini@redhat.com>
import argparse