Skip to content

Instantly share code, notes, and snippets.

View sellonen's full-sized avatar

Sakari Ellonen sellonen

  • Mapita Inc
  • Helsinki, Finland
View GitHub Profile
@vilicvane
vilicvane / wsl-host.ps1
Last active December 3, 2022 06:25
Access Windows host from WSL 2
# Access host ports from WSL 2.
# https://gist.github.com/vilic/0edcb3bec10339a3b633bc9305faa8b5
# Make sure WSL gets initialized.
bash.exe -c exit
# Record host name for /etc/hosts that points to host IP.
$HOST_NAME = "host.wsl";
# Ports listened on host localhost to forward, you don't need to add the port if it listens all addresses.
@kumakichi
kumakichi / README.org
Created January 24, 2019 11:57
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Bash
@mjlescano
mjlescano / jquery.event.stop.js
Last active August 29, 2015 14:07
jQuery event.preventDefault() and event.stopPropagation() shortcut.
/**
jQuery.Event.stop extension
===========================
Simple shortcut to do:
$(document).on('click', 'a', function(e){
return e.stop()
})