Skip to content

Instantly share code, notes, and snippets.

View MrEnder0's full-sized avatar

Mr.Ender MrEnder0

  • The stars and beyond
View GitHub Profile
@MrEnder0
MrEnder0 / main.rs
Last active January 8, 2024 08:11
Bash Terminal Gateway in Rust
// 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");
@VermeilChan
VermeilChan / compile-aseprite-win.md
Last active September 18, 2024 17:03
Compile Aseprite from source code for Windows 11/10 x64
@MrEnder0
MrEnder0 / game.lua
Last active June 16, 2023 20:32
A simple game made in retro gadgets
---@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
@MrEnder0
MrEnder0 / sidebar.html
Last active February 13, 2023 01:26
HTML sidebar template
<!-- Sidebar -->
<div id="sidebar" class="sidebar_nav">
<h3 class="sidebar_nav_title">Menu</h3>
<nav>
<ul>
<a href="#home" class="sidebar_nav_link">Home</a>
<br><br>
<a href="#0" class="sidebar_nav_link">Folder oneꜜ</a>
<ul id="list">
<a href="#f1o1" class="f1o1">Option1</a>
@MrEnder0
MrEnder0 / docopt_template.nim
Created October 22, 2022 04:13
A docopt template for the nim language.
import docopt
const doc = """
Usage:
Program (about | a)
Program (reply | r) <prase> [options]
Options:
--forever Loops forever
"""
@BigBrainAFK
BigBrainAFK / wootility_lekker_edition_usb_feature_codes.js
Last active August 25, 2024 06:52
Wootility Lekker Edition USB Feature Codes
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"
@djfdyuruiry
djfdyuruiry / README.md
Last active September 19, 2024 05:44
WSL 2 - Enabling systemd

Enable systemd in WSL 2

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 called systemd-genie

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