Skip to content

Instantly share code, notes, and snippets.


Max Barrass wildone

View GitHub Profile
View Windows Subsystem for Linux version 1 and 2 (WSL) - node install

Windows 10 version 2004 - Installing Node.js on Windows Subsystem for Linux (WSL/WSL2)

UPDATE (Fall 2020): This gist is an updated version to the Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL) guide, I usually just keep here notes, configuration or short guides for personal use, it was nice to know it also helps other ppl, I hope this one too.

Windows updated windows subsystem for linux to version 2, as the F.A.Q stated you can still use WSL version 1 side by side with version 2. I'm not sure about existing WSL machines surviving the upgrade process, but as always backup and 🤞. NOTE: WSL version 1 is not replace/deprecated, and there ar

wildone / Add ssh-agent to your bash start
Last active Nov 14, 2020
Add ssh-agent to your bash start
View Add ssh-agent to your bash start
Best way to use ssh keys is to add them to SSH Agent, this will will allow you use ssh without needing to specify pasword for your SSH key all the time.
To do this add these lines to you `.bash_profile` or `.profile`
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
trap "kill $SSH_AGENT_PID" 0
wildone / Powershell Do Sling Post
Last active Jun 19, 2020
Powershell Do Sling Post
View Powershell Do Sling Post
function doSlingPost {
Param (
wildone / Powershell Export content using FileVault
Created Jun 15, 2020
Powershell Export content using FileVault
View Powershell Export content using FileVault
# Download and extract Filevault from run this in the extracted folder.
#equivalent of using localhost in docker container
Set-Variable -name SOURCE_HOST -value "localhost"
# TCP port SOURCE_CQ listens on
Set-Variable -name SOURCE_PORT -value "4502"
# AEM Admin user for SOURCE_HOST
Set-Variable -name SOURCE_AEM_USER -value "admin"
# AEM Admin password for SOURCE_HOST
Set-Variable -name SOURCE_AEM_PASSWORD -value "admin"
wildone / Powershell wait for URL
Last active Jun 15, 2020
Powershell wait for URL
View Powershell wait for URL
function WaitForUrlContent {
Param (
wildone /
Last active Jun 13, 2020
setup kong api gateway and gui
wildone / squid.conf
Last active Jun 3, 2020
Basic SQUID proxy config for running Squid in Docker with Local and Docker LAN allowed
View squid.conf
# Description:
# Basic SQUID proxy config for running Squid in Docker with Local and Docker LAN allowed
# Uage:
# docker run --name squid -d --restart=always --publish 3128:3128 --volume ${pwd}\squid.conf:/etc/squid/squid.conf sameersbn/squid
# TAG: acl
# Defining an Access List
acl SSL_ports port 443
wildone / convert-docx-to-md-with-images
Last active May 11, 2020
If you have a DOCX with images and would like to convert it to MD to publish somewhere run this command in the folder with your document. This will mount the folder into docker container, convert document and extract all images into subfolder.
View convert-docx-to-md-with-images
docker run -v ${pwd}:/data pandoc/core -o --extract-media=./test2/ test2.docx
wildone / text-strings-to-anchor
Last active Apr 30, 2020
Convert Strings into Anchor tags using Regex and Javascript
View text-strings-to-anchor
"If you are looking to fix strings that look like urls in text and convert them to ulrs like this http:// you can use Regex in javascript to replace strings with a format of you liking even if a url is at the end of your string like".replace(/((\w+:\/\/\S+)|(\w+[\.:]\w+\S+))[^\s,\.]/mg,'<a href="$&" target="_blank">$&</a>')
wildone / PiHole Extra Block List
Last active Mar 20, 2020
Here is a list of things that gave me :D, I've added a few things to it, just add this to blocklist in PiHole.
View PiHole Extra Block List