Skip to content

Instantly share code, notes, and snippets.

@sebaxakerhtc
sebaxakerhtc / wsl2-network.ps1
Last active February 17, 2022 16:59 — forked from xmeng1/wsl2-network.ps1
WSL2 Port forwarding port to linux
bash.exe -c "sudo service apache2 restart"
bash.exe -c "sudo service mysql restart"
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
@FreddieOliveira
FreddieOliveira / docker.md
Last active June 24, 2024 16:01
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@bp2008
bp2008 / HyperVServer2019_GUI_Installation.md
Last active June 3, 2024 15:48
How to install a graphical desktop environment on Hyper-V Server 2019

Hyper-V Server 2019 GUI Installation Guide

Introduction

Hyper-V Server does not include much in the way of graphical tools, but third-party alternatives can be installed.

I found a disturbing lack of basic instructions for using Hyper-V Server 2019, so it is my hope that this guide is useful to somebody.

Before starting this guide, enable Remote Desktop support in Hyper-V Server using the built-in configuration menu. If you connect to the Hyper-V Server with Remote Desktop, it will make it easy to copy and paste text (and later, files) from a normal Windows desktop machine.

@visitdigital
visitdigital / webhook.php
Last active September 20, 2022 02:51
Very Simple Facebook Chat Bot PHP Webhook Script Example
<?php
$challenge = $_REQUEST['hub_challenge'];
$verify_token = $_REQUEST['hub_verify_token'];
// Set this Verify Token Value on your Facebook App
if ($verify_token === 'testtoken') {
echo $challenge;
}
$input = json_decode(file_get_contents('php://input'), true);