Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
@mrdaemon
mrdaemon / imaging.md
Last active March 16, 2024 19:56
Archiving CDROMs on Linux, A Quick and Dirty Guide

A quick and dirty guide to dumping images of your CDs 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 covers mostly data cds such as games and software, and has mixed results with some copy protections, even if you dump subchannel data.

@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
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
// 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.
@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 <alex@lab.underwares.org>
É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
server {
# Default server, listen on port 80 ipv4 and ipv6
# No SSL for now, it's terminated at the proxy level anyways.
listen 80 default_server;
listen [::]:80 default_server;
root /var/www;
index index.html index.htm;
/tmp/deps
|-- bower.json
|-- libs
| |-- JS-Interpreter
| |-- MIDI.js
| |-- Matter
| |-- Recorderjs
| |-- artTemplate
| |-- fabric.js
| |-- fastclick
package ProxyDav;
use strict;
use ModPerl::Util ();
use Apache2::RequestRec ();
use APR::Table ();
use URI;
use Apache2::Const -compile => qw(OK);
sub handler {
my $request = shift;
-- adduser-proc.sql
-- Alexandre Gauthier 2015-2016
-- Stored Procedure to create new virtual users in the mail server database.
-- Serves as a better interface than inserting rows and hoping to hash the
-- password right.
use mailserver;
DROP PROCEDURE IF EXISTS AddMailUser;
use std::thread;
use std::sync::Mutex;
use std::sync::Arc;
struct Table {
forks: Vec<Mutex<()>>,
}
struct Philosopher {
name: String,