Skip to content

Instantly share code, notes, and snippets.

View sohmc's full-sized avatar

Michael Soh sohmc

  • Capital One
  • Richmond, VA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sohmc on github.
  • I am sohmc (https://keybase.io/sohmc) on keybase.
  • I have a public key ASAF9wCwTjOb1nA7OUQWJGN6YWfwKlIWhKm7SF4GI9oVfQo

To claim this, I am signing this object:

@sohmc
sohmc / HOWTO.md
Last active August 18, 2021 16:23
How to install multiple instances of the same Linux distribution in WSL

This howto is a TL;DR version of how to do create multiple instances of the same Linux distribution in WSL.

Some reasons why you may want to do this:

  • You are experimenting and want to keep your "production" version of WSL working while you make breaking changes.
  • You want to have different git profiles. (I found VS Code with WSL didn't quite work well with multiple users in WSL. I was too lazy to look into this.)
  • For the lulz?

Inspired by this out of date post by Hossein, this post combines instructions from two Microsoft documents:

@sohmc
sohmc / hg-to-git-convert.bash
Created December 22, 2019 15:45
Convert hg repositories to git.
#!/bin/bash
if [[ -z $REPO ]]; then
read -p "Please provide the hg clone URL: " REPO
fi
echo "Cloning repository ${REPO}..."
hg clone ${REPO} ./gitify
cd ./gitify
@sohmc
sohmc / Nautilus Window Fix.bat
Last active February 5, 2018 14:52
Update Nautilus Window Coordinates
@ECHO OFF
REM Nautilus Window Fixer
REM Version 1.0
REM Michael Soh
REM
REM This script can be obtained from Michael Soh's gist:
REM https://gist.github.com/sohmc/5362b8f80f58abf6e96cec512af0a2be
REM
REM This script is licensed via the GNU GPL 3.0