Skip to content

Instantly share code, notes, and snippets.

View vanakema's full-sized avatar
🐻

Mark Van Aken vanakema

🐻
View GitHub Profile
@vanakema
vanakema / 1-macOS-10.13-high-sierra-setup.md
Created June 13, 2018 21:18 — forked from kevinelliott/1-macOS-10.13-high-sierra-setup.md
macOS 10.13 High Sierra Mostly-Automated Setup

macOS 10.13 High Sierra Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

@vanakema
vanakema / dockergrep.sh
Created May 27, 2020 21:20 — forked from roylee0704/dockergrep.sh
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
@vanakema
vanakema / README.md
Last active September 2, 2022 16:56
Setting up an ssh tunnel into WSL2 Ubuntu

Setting up an ssh tunnel into your WSL2 Ubuntu instance

I am writing this up in order to have it documented how I got an SSH tunnel into my WSL2 Ubuntu environment, as I kept having issues along the way. So I wanted to document things more clearly for myself in the future, and I hope this helps someone else along the way

I started with this guide

This is going to be a story

First issue I ran into is that wsl hostname -I command in the sshd.bat didn't work due to -I not being an option in the default WSL2 distro (the one that WSL launches into if you don't install any other distros). I ran wsl hostname --help and learned there was a -i, so I changed it to that, since that does spit out an IP. It just turns out that's not the IP you want. This was my point of failure.

I kept running into a kex_exchange_identification: Connection closed by remote host error. After some hours of debugging, I realized the ip address s