Skip to content

Instantly share code, notes, and snippets.

View mxxntype's full-sized avatar
⚜️
At the door to the tenth sublevel

mxxntype ༒ mxxntype

⚜️
At the door to the tenth sublevel
  • RTU MIREA
  • /dev/tty
View GitHub Profile
@mxxntype
mxxntype / rust_cover_art_extraction.rs
Last active October 9, 2024 19:03
A snippet of getting the cover art (APIC frame) from a music file. For later use :)
use eyre::{Context, ContextCompat, Report};
use id3::{Content, Tag, TagLike};
use image::ImageReader;
use std::{env, io::Cursor};
fn main() -> Result<(), Report> {
color_eyre::install()?;
get_cover_art(env::args().nth(1).unwrap().as_str())?;
Ok(())
}
@SmallEndian
SmallEndian / howto.md
Last active February 20, 2024 18:54
Change rustdoc's default theme

While all rust documentation has some pretty nice themes, it's a bother to have to select the proper theme for evey single repo, and sometimes this choice does not affect other modules.

Simply add this to your ENV.

# .zshrc
export RUSTDOCFLAGS="--default-theme=ayu"

There's a better way to do this, it's to modify the Cargo doc. So that's a toml file that is held in the user directory.

@j-brn
j-brn / example.nix
Last active June 16, 2025 07:27
KVMFR-NixOS
{
virtualisation.kvmfr = {
enable = true;
shm = {
enable = true;
size = 128;
user = "j-brn";
group = "libvirtd";
@ladinu
ladinu / encryptedNixos.md
Last active May 15, 2025 14:54
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@jayswan
jayswan / uncipher.py
Created February 27, 2012 23:58
Python: reverse Cisco type 7 passwords with input from file or stdin
"""
Uncipher Cisco type 7 ciphered passwords
Usage: python uncipher.py <pass> where <pass> is the text of the type 7 password
Example:
$ python uncipher.py 094F4F1D1A0403
catcat
"""
import fileinput
import sys