Skip to content

Instantly share code, notes, and snippets.

@Darksecond
Darksecond / playground.rs
Created March 27, 2023 08:43 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#![feature(unsize)]
use std::alloc::Layout;
use std::marker::{PhantomData, Unsize};
use std::mem;
/// Assumes pointer-sized metadata
#[repr(C)]
struct DstPointerRepr {
data: *mut (),
@Darksecond
Darksecond / proxy.py
Created May 27, 2022 19:44 — forked from aveao/proxy.py
Comic Chat fixer - ugly python3 fork with QoL features and optional twitch support
#
# Comic Chat fixer MITM proxy: fixes Comic Chat to (sort of) work with modern
# IRC servers. Tested with Microsoft Chat 2.5 on Windows XP, 8 and 10
#
# This is a fork by ave with additional fixes and python3 support
# Alongside some other QoL features like color nicks being displayed in chat
# https://gist.github.com/aveao/f6d40f41a424b1d9a54c9aba39742b76
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@Darksecond
Darksecond / proxy.py
Created May 27, 2022 19:32 — forked from richardg867/proxy.py
Comic Chat fixer
#
# Comic Chat fixer MITM proxy: fixes Comic Chat to (sort of) work with modern
# IRC servers. Tested with Microsoft Chat 2.5 on Windows XP, 8 and 10
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@Darksecond
Darksecond / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,