- Docker for Desktop can run on WSL 2 without any Virtual machine!
- WSL 2 is now available for stable Windows 10 (not just Insiders) via the (stable) Windows 10 May 2020 Update.
- WSL 2 is available for Windows Home editions, too, you don't need a Pro license!
- Docker for Desktop with WSL 2 eliminates many issues inherent to running a Linux VM and using shares into that VM.
- WSL 2 supports *nix permissions on Windows file systems mounted into WSL 2 (Postgres container mounts come into mind).
- WSL 2 also supports full GPU access – CUDA and such, too, since the 2021H2 November update even in non-insiders, stable!!
- VirtualBox (in recent version) [can now coexist with Hyper-V](https://us.informatiweb.net/tutorials/it/virtual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(factory) { | |
if ("function" == typeof define && define.amd) { | |
define(["jquery"], factory); | |
} else { | |
factory(jQuery); | |
} | |
}(function($) { | |
/** | |
* @param {Element} element | |
* @param {boolean} isTabIndexNotNaN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(factory) { | |
if ("function" == typeof define && define.amd) { | |
define(["jquery"], factory); | |
} else { | |
factory(jQuery); | |
} | |
}(function($) { | |
/** | |
* @param {Element} element | |
* @param {boolean} isTabIndexNotNaN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add a wave alignment to your title text using Sass, Compass, and Lettering.js. | |
* | |
* Lettering.js wraps each letter with a span with a class of .char<#>. | |
* Compass provides math functions including the sin which provides the wave form. | |
*/ | |
$length: 11; // The word is 11 letters long | |
@for $i from 1 through $length { | |
.char#{$i} { | |
@include transform(translateY( sin(($i - 1)/($length - 1)*2*pi()) * -25px) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tattoo_submit() { | |
if (isset($_POST["addtattoo"])) { | |
$title = "Tattoo : ". $_POST["tatooInput"]; | |
$my_post = array( | |
'post_title' => $title, | |
'post_status' => 'publish', | |
'post_author' => 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add this code to plugin or theme | |
// Authorize API for project: | |
// see https://console.developers.google.com/apis/api/places_backend?project=_ | |
const GOOGLE_API_KEY = 'the-API-key'; | |
// ACF |
Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh
inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent
/npiperelay.exe
approach below.
Thanks to the instructions for WSL 2 of the wsl-ssh-agent
project, KeeAgent works great in WSL 2 now:
https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility
The approach uses minimal and well-maintained tools.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
msysGit to Unix socket proxy | |
============================ | |
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows). | |
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the | |
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other |