Skip to content

Instantly share code, notes, and snippets.

View treymouledoux's full-sized avatar
🤝
I look forward to our future partnership

Trey treymouledoux

🤝
I look forward to our future partnership
  • The stars and beyond
View GitHub Profile
@treymouledoux
treymouledoux / 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");
@Mitra-88
Mitra-88 / compile-aseprite-win.md
Last active October 4, 2026 16:15
Compile Aseprite from source code for Windows 11/10 x64
@treymouledoux
treymouledoux / 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
@treymouledoux
treymouledoux / 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>
@treymouledoux
treymouledoux / 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_feature_codes.txt
Last active December 27, 2024 00:13
Wooting 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 October 31, 2026 14:33
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: