- Windows 11/10 x64.
- Visual Studio Community 2022 + Desktop Development with C++ + Windows 10.0 SDK (latest).
- CMake.
- Ninja Build System.
- Skia.
- Winrar or 7zip.
This file contains hidden or 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
// Code written by Mr.Ender for educational purposes only, version 2 | |
use std::{process::Command, io}; | |
fn main() { | |
let host_name = Command::new("sh") | |
.arg("-c") | |
.arg("hostname") | |
.output() | |
.expect("failed to get host name"); |
This file contains hidden or 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
---@diagnostic disable: undefined-global | |
-- Retro Gadgets | |
local spriteFont = gdt.ROM.System.SpriteSheets["StandardFont"] | |
local sine : AudioSample = gdt.ROM.User.AudioSamples["sine.wav"] | |
local death : AudioSample = gdt.ROM.User.AudioSamples["death.wav"] | |
local win : AudioSample = gdt.ROM.User.AudioSamples["win.wav"] | |
local ticksPerSpawn = 45 | |
local ticks = 0 |
This file contains hidden or 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
import docopt | |
const doc = """ | |
Usage: | |
Program (about | a) | |
Program (reply | r) <prase> [options] | |
Options: | |
--forever Loops forever | |
""" |
This file contains hidden or 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
Ping = 0 = "Ping" | |
GetVersion = 1 = "GetVersion" | |
ResetToBootloader = 2 = "ResetToBootloader" | |
GetSerial = 3 = "GetSerial" | |
GetRgbProfileCount = 4 = "GetRgbProfileCount" | |
REMOVED_GetCurrentRgbProfileIndex = 5 = "REMOVED_GetCurrentRgbProfileIndex" | |
REMOVED_GetRgbMainProfile = 6 = "REMOVED_GetRgbMainProfile" | |
ReloadProfile0 = 7 = "ReloadProfile0" | |
SaveRgbProfile = 8 = "SaveRgbProfile" | |
GetDigitalProfilesCount = 9 = "GetDigitalProfilesCount" |
NOTE: If you have Windows 11 there is now an official way to do this in WSL 2, use it if possible - see MS post here (WINDOWS 11 ONLY)
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 calledsystemd-genie
-
Copy the contents of
install-sg.sh
to a new file/tmp/install-sg.sh
: