Skip to content

Instantly share code, notes, and snippets.

@gianmaria
gianmaria / env_output.txt
Created August 17, 2025 08:31
Environment variables to set
CARGO_HOME=C:\dev\rust\.cargo
DEV_PATH=C:\Dev\go\bin;C:\Workspace\.go\bin;C:\Dev\cmake\bin;C:\Dev\ninja\bin;C:\Dev\python\Scripts;C:\Dev\python;C:\Dev\node;C:\Dev\raddbg;C:\dev\rust\.cargo\bin;C:\Dev\zig\zls;C:\Dev\zig;C:\Qt\Tools\OpenSSLv3\Win_x64\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\6.8.1\msvc2022_64\bin;C:\Dev\java\bin
GOENV=C:\Workspace\.go\env
GOMODCACHE=C:\Workspace\.go\pkg\mod
GOPATH=C:\Workspace\.go
GOROOT=C:\Dev\go
Path=C:\Dev\bin;C:\Dev\env;C:\Dev\shell;C:\Dev\vcpkg;%DEV_PATH%
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.LNK
PROMPT=[$T] $P$_$G$S
RUSTUP_HOME=C:\dev\rust\.rustup
i'm a seasoned software developer, working on windows, using msvc as a compiler, visual studio code as editor along side with visual studio professional 2022 as ide, the language that i primarily use is c++ standard 20 and when i want to develop gui app on windows i use qt as a framework.
i have my ide and editor all setup, i just need the code.
@gianmaria
gianmaria / build.bat
Last active March 30, 2025 15:18
build.bat
@echo off
setlocal
set mode=%1
if "%mode%"=="debug" (
set optimization=/Od /Zi /MDd
set macro=/D "_DEBUG"
) else if "%mode%"=="release" (
set optimization=/O2 /Zi /MD
@gianmaria
gianmaria / readme.txt
Created April 27, 2024 14:06
cli qt installer
https://github.com/miurahr/aqtinstall
https://aqtinstall.readthedocs.io/en/latest/
@gianmaria
gianmaria / cmd_aliases.bat
Last active August 17, 2025 08:33
aliases for windows cmd
:: copy the full path of this file (C:\Dev\bin\aliases.bat)
:: in the value Autorun in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\
@echo off
doskey cd.. = cd ..
doskey .. = cd ..
doskey h = cd %USERPROFILE%
doskey proj = cd C:\Workspace\projects
doskey ls = dir $*
@gianmaria
gianmaria / msvc flags.txt
Last active June 7, 2025 20:22
msvc common compiler flags
// complete list: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category
/Od -> debug
/Zi -> debug info in pdb
/Wall -> enable all warnings
/external:anglebrackets /external:W0 /analyze:external- -> disable warnings for external header
/wdnnnn -> disable specific warning
/EHsc -> Full compiler support for the Standard C++ exception handling (exceptions can only occur at a throw statement or at a function call and functions declared as extern "C" never throw a C++ exception).
@gianmaria
gianmaria / build qt6 windows.md
Last active October 9, 2025 20:13
Build Qt 6 on Windows

Building Qt 6.5 on Windows

Neessary tools

  • cmake
  • ninja
  • python (>= 3.10)
  • node
  • cygwin64
  • git for windows
@gianmaria
gianmaria / howard_hinnant_date_example.cpp
Last active November 6, 2022 12:08
Howard Hinnant date
/*
https://github.com/HowardHinnant/date
https://github.com/HowardHinnant/date/wiki
https://github.com/HowardHinnant/date/wiki/Examples-and-Recipes
https://github.com/HowardHinnant/date/wiki/Boost-datetime-Examples-Translated
https://howardhinnant.github.io/date/date.html
https://howardhinnant.github.io/date/tz.html
*/