Skip to content

Instantly share code, notes, and snippets.

@dnikku
dnikku / ArchLinuxWSL2.md
Created April 25, 2021 12:33 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

@dnikku
dnikku / main.cpp
Last active November 11, 2015 18:11
_beginthreadex/CreateThread leaks when using CRT or not (with multiple wait)
#include "stdafx.h"
/*
stdafx.f:
#include <time.h>
#include <stdio.h>
#include <tchar.h>
#include <Windows.h>
#include <process.h>
*/
@dnikku
dnikku / main.cpp
Last active November 11, 2015 20:26
_beginthreadex/CreateThread leaks when using CRT or not (with one wait)
#include "stdafx.h"
/*
stdafx.f:
#include <time.h>
#include <stdio.h>
#include <tchar.h>
#include <Windows.h>
#include <process.h>
*/
@dnikku
dnikku / main.cpp
Last active November 11, 2015 00:40
_beginthreadex/CreateThread leaks when using CRT or not
#include "stdafx.h"
/*
stdafx.f:
#include <time.h>
#include <stdio.h>
#include <tchar.h>
#include <Windows.h>
#include <process.h>
*/