wsl --update
wsl --install Debian --location C:\wsl\Debian\librespot --name librespot --no-launch --web-download
wsl --distribution librespot # pick a user name & password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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" |
You may skip the tl;dr section an start with the Setup instantly.
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]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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" |