Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
@mrdaemon
mrdaemon / 63
Created November 16, 2016 08:04
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 16 2016 03:01:41)
Rustines incluses : 1-86
Compilé par Alexandre Gauthier <[email protected]>
Énorme version avec interface graphique GTK3.
Fonctionnalités incluses (+) ou non (-) :
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
+balloon_eval +folding +mouse_xterm +termguicolors
+browse -footer +multi_byte +terminfo
// A predictably boring preamble
extern crate rand;
use std::io;
use std::cmp::Ordering;
use rand::Rng;
// Entry point. Returns an empty tuple.
fn main() {
// Get thread rng and poop a number in a range.
Q:\> Test-Connection -Count 5 -delay 2 -ComputerName hexagram
Source Destination IPV4Address IPV6Address Bytes Time(ms)
------ ----------- ----------- ----------- ----- --------
PIXEL hexagram 172.16.64.28 32 0
PIXEL hexagram 172.16.64.28 32 0
PIXEL hexagram 172.16.64.28 32 0
PIXEL hexagram 172.16.64.28 32 0
PIXEL hexagram 172.16.64.28 32 0
@mrdaemon
mrdaemon / NameGizmo.cs
Last active September 18, 2023 03:22
A Godot 4 C# class for an in-editor gizmo that displays the entity name above them
/**
* A basic gizmo that sets a Label3D child to the name of its parent.
* Arguably useful for development.
*
* The Label3D component will only be shown inside the Editor viewport.
* At runtime, the object and its hierarchy is removed entirely on call
* to _Ready().
*
* Caveats:
* - Super basic, the inverted triangle arrow is a hardcoded unicode
@mrdaemon
mrdaemon / imaging.md
Last active July 3, 2025 20:12
Archiving CDROMs on Linux, A Quick and Dirty Guide

A quick and dirty guide to dumping images of your CDs and DVDs on Linux

https://untrusted.website/@mr_daemon

This roughly describes the process I use to dump my old CDs to image files while attempting to retain as much of the original data as possible.

This guide is very terminal oriented but it should remain accessible.

This covers mostly data cds such as games and software, and has mixed

# RunServer.ps1
#
# Shitty wrapper around the MotorTown dedicated server binary
# Restarts the server if it crashes, or if it's not running.
# This is hot garbage, btw, I just wrote this at 3am in 5 minutes.
# One day I can wrap the server in a service and stop caring,
# but today is not that day.
#
# Latest version is always available at:
# https://gist.github.com/mrdaemon/6cfaddccad1c6fa52ebaf3781e0b258d