Skip to content

Instantly share code, notes, and snippets.

View br0kenpixel's full-sized avatar
😁

Fábián Varga br0kenpixel

😁
View GitHub Profile
@br0kenpixel
br0kenpixel / alpine_headless_rpi.md
Last active May 10, 2023 11:03
Alpine linux headless install on RPi
  1. Download Alpine Linux from here.
  2. Connect your SD Card to your PC.
  3. Format the card. Create a single FAT32 partition.
  4. Extract the contents of the downloaded tar.gz archive.
  5. Copy the contents to the root of the SD Card.
  6. Add headless configuration if needed.
  7. Connect to the SD Card to your Raspberry Pi.
  8. Power it on.

Run the following commands in the shell:

@br0kenpixel
br0kenpixel / organizer.py
Last active June 2, 2023 19:31
Organize songs into a nice folder structure (Artist/Album/Song)
import music_tag
from os import listdir, system, mkdir
from subprocess import run
from os.path import exists
import unicodedata #Django
import re
F_EXT = "m4a"
TARGET_DIR = "organized"
@br0kenpixel
br0kenpixel / micropython-pico-setup.txt
Created September 24, 2022 15:22
Setting up a build environment for building MicroPython for Raspberry Pi Pico (W) and Arduino Nano RP2040 Connect.
Source: https://forum.micropython.org/viewtopic.php?f=21&t=9965
1) Clone the repo:
a) git clone https://www.github.com/micropython/micropython
b) Specific version:
i.) git clone -b v1.19.1 https://github.com/micropython/micropython.git
Note: v1.19.1 does not work! Use latest instead.
Note: --recursive is not needed
2) Build mpy-cross: