A Batch for a New Post in Hugo

Batch file for a new post in Hugo @echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set datetime=%%a set year=%datetime:~0,4% set month=%datetime:~4,2% set day=%datetime:~6,2% setlocal enabledelayedexpansion set "filename=%1" shift :concat if "%1"=="" goto end set "filename=!filename!-%1" shift goto concat :end set filename=%year%-%month%-%day%-!filename!.md hugo new -k post posts/!filename! subl "content\posts\!filename!" And the archetype for post: --- title: "{{ replace (substr .Name 11) "-" " " | title }}" date: {{ ....

November 29, 2023

Git Mounter

has anyone made a read-only FUSE filesystem for a git repository where every commit is a folder and the folder contains all the files in that commit? the idea is that you could just run cd COMMIT_ID and poke around instead of checking out the commit and maybe the branches could be symbolic links to the commit folders? Git Mounter

November 29, 2023

Designing a SIMD Algorithm from Scratch

Another explainer on a fun, esoteric topic: optimizing code with SIMD (single instruction multiple data, also sometimes called vectorization). Designing a good, fast, portable SIMD algorithm is not a simple matter and requires thinking a little bit like a circuit designer. Designing a SIMD Algorithm from Scratch

November 29, 2023

How To Enable A 64 Bit Visual Cpp Toolset On The Command Line

x64 Native Tools Command Prompt for VS 2022 how to enable a 64 bit visual cpp toolset on the command line

November 28, 2023

RDP Windows 11 with Microsoft Account MFA

Based on the explanation on the site nready.net Just fill the password cache on the server machine (the remote one) If you have a Microsoft Account and maybe never typed a password in Windows Trying to log in via RD, but “Your credentials are not working. The credentials you used to connect to computer xxx are not working. Enter new credentials.” Ctrl+R -> runas /u:MicrosoftAccount\[email protected] cmd.exe It will run the cmd with those credentials but also fill the local cache with the password Now you will be able to log in via Remote Desktop Client “Twoje poświadczenia nie działają....

July 12, 2023