Skip to content

Instantly share code, notes, and snippets.

View urbans0ft's full-sized avatar

urbanSoft urbans0ft

View GitHub Profile
@urbans0ft
urbans0ft / !build-librespot.md
Last active October 24, 2025 22:08
Building librespot on Windows 11 (WSL) for the Rasbperry Pi

Windows Subsystem for Linux (WSL)

Powershell

wsl --update
wsl --install Debian --location C:\wsl\Debian\librespot --name librespot --no-launch --web-download
wsl --distribution librespot # pick a user name & password
@urbans0ft
urbans0ft / cygwin.bat
Created May 16, 2025 21:45
Install and auto-update cygwin from command line.
@echo off
cls
:: CONSTANTS
:: Path cygwin should get installed to.
set cygwin_dir=C:\Cygwin
set cygwin_url=https://cygwin.com/setup-x86_64.exe
:: The script calls itself after copying to the installation directory with the parameter
:: --origin set to the originating file. So it can delete the obsolete copy it originated from.
@urbans0ft
urbans0ft / cygwin.bat
Created November 24, 2024 22:41
Always install latest cygwin version batch script.
@echo off
cls
:: CONSTANTS
:: Path cygwin should get installed to.
set cygwin_dir=C:\Cygwin
set cygwin_url=https://cygwin.com/setup-x86_64.exe
:: The script calls itself after copying to the installation directory with the parameter
:: --origin set to the originating file. So it can delete the obsolete copy it originated from.
@urbans0ft
urbans0ft / buildOCV.bat
Last active November 18, 2024 21:52
Installation by Using cmd git cmake and MinGw
REM https://docs.opencv.org/4.x/d3/d52/tutorial_windows_install.html
PUSHD "%0\.."
mkdir opencv
cd opencv
set opencv_base_path=%CD%
mkdir src
mkdir build
@urbans0ft
urbans0ft / README.md
Last active January 13, 2026 23:08
HifiBerry MiniAmp Raspian Lite armv7 (64bit) with Spotify and Airplay

RPi Configuration

Packages

# needed for spotifyd to run on 64bit
sudo dpkg --add-architecture armhf
sudo apt update -y
sudo apt upgrade -y
sudo apt install vim -y
@urbans0ft
urbans0ft / qpdf-split.bat
Last active January 4, 2023 08:49
Batch file to facilitate the splitting of pdf documents using qpdf
@echo off
setlocal EnableDelayedExpansion
:: Constants
set "SPLIT_FOLDER=C:\qpdf\split"
set "OUT_DIR=%SPLIT_FOLDER%\out"
for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined localdatetime set localdatetime=%%x
set "OUT_FILE=%OUT_DIR%\%localdatetime:~0,14%.pdf"
@urbans0ft
urbans0ft / Win32ApiDevEnv.md
Last active September 12, 2022 11:58
Setup Win32 API Development Environment with MinGW, Visual Studio Code and CMake

You may skip the tl;dr section an start with the Setup instantly.

tl;dr

This tutorial describes how to setup a Win32 API[^win32] development environment on Windows (where else 😉). The goal is to create a setup with publicly available (open-source) tools:

  • CMake[^cmake]
  • Visual Studio Code[^vscode]
  • MinGW-64 Builds[^mingw-w64-builds]
@urbans0ft
urbans0ft / qpdf-merge.bat
Last active December 14, 2022 19:44
Batch file to facilitate the merging of pdf documents using qpdf
@echo off
setlocal EnableDelayedExpansion
:: Constants
set "MERGE_FOLDER=C:\qpdf\merge"
set "OUT_DIR=%MERGE_FOLDER%\out"
for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined localdatetime set localdatetime=%%x
set "OUT_FILE=%OUT_DIR%\%localdatetime:~0,14%.pdf"
@urbans0ft
urbans0ft / cplusplus_style_guide.md
Last active December 20, 2022 15:01
C++ Style Guide