Skip to content

Instantly share code, notes, and snippets.

View ShawnCrigger-SOLS's full-sized avatar

Shawn Crigger ShawnCrigger-SOLS

  • SiteOne Landscape Supply
  • Myrtle Beach, SC
View GitHub Profile
@ShawnCrigger-SOLS
ShawnCrigger-SOLS / PhpArrayToYaml.php
Created November 19, 2022 00:23 — forked from ArnaudLigny/PhpArrayToYaml.php
Convert PHP array to YAML
#!/usr/local/bin/php
<?php
if (php_sapi_name() !== 'cli') {
return;
}
date_default_timezone_set('Europe/Paris');
require_once 'vendor/autoload.php';
use Symfony\Component\Yaml\Yaml;
try {
@ShawnCrigger-SOLS
ShawnCrigger-SOLS / README.md
Last active August 15, 2021 20:03 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp