Skip to content

Instantly share code, notes, and snippets.

View mbartelsm's full-sized avatar
💭
💀 undead

Miguel Bartelsman mbartelsm

💭
💀 undead
View GitHub Profile
@mbartelsm
mbartelsm / 01_reference.md
Last active June 12, 2021 10:30
MPI Cheatsheet

Reference

Setup and teardown

// Initializes MPI. Needed to use other functions.
MPI_Init(           // out  int             Error value
    &argc,          // i/o  int*            Number of program arguments
    &argv           // i/o  char***         Program arguments
);

// Tears down MPI. Cannot call MPI funcs after this.
@mbartelsm
mbartelsm / readme.md
Last active August 24, 2023 13:37
VSCode context menu to open WSL

I'm tired of always struggling to open a folder in VSCode using WSL. You normally have to open the current folder in Code, wait for it to load, then reopen in the remote, which closes and reopens Code, so you have to wait for it to load everything once more. The alternative is to open a WSL shell, which takes it's good time too, navigate via the terminal to the folder you want, then open Code.

I just want to right click and be done. So I arranged a little something.

DISCLAIMER Before you proceed, back up your registry. If something breaks, that's on you for not having a backup.

This registry file will delete the current context menu entry for VSCode and replace is with a submenu that lets you choose wether to open it up normally, or via WSL. It only works when right clicking on a folder or on the background.

Something you might want to do before running it is to verify that the installation paths are the same ones you have in your set-up. If you don't have WSL in your PATH, you will either need to edi