Skip to content

Instantly share code, notes, and snippets.

View LuMarans30's full-sized avatar
🦀
studying for exams

LuMarans LuMarans30

🦀
studying for exams
  • UNICAM
  • Fermo
  • 09:15 (UTC +01:00)
View GitHub Profile
@LuMarans30
LuMarans30 / clap_example.rs
Created November 13, 2025 16:32
Example of Rust CLI program that uses the clap crate
use anyhow::Result;
use clap::Parser;
use std::{
io::Write,
path::{Path, PathBuf},
};
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
@LuMarans30
LuMarans30 / OpenSUSEPitchDark.colors
Last active September 3, 2024 10:40
OpenSUSE_Pitch_Dark.colors
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
@LuMarans30
LuMarans30 / fallout_banner
Last active October 8, 2025 16:54
Fallout ASCII Art for Bash
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀ \e[38;5;226m ⢀⡀
\e[5m\e[38;5;202m ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠤⠴⠾⠋⠉⠛⢾⡏⠙⠿⠦⠤⢤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\e[38;5;46m\e[25m ⠀⠀⠀ ⠀⠀⠀⠀⠀ \e[38;5;226m ⢀⣤⣄⣴⣿⣿⣶⣦⣄
\e[5m\e[38;5;202m ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⢶⣿⠉⢀⣀⡠⠆⠀⠀⠀⠀⠀⠀⠀⢤⣀⣀⠈⢹⣦⢤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\e[38;5;46m\e[25m ⠀⠀⠀ \e[38;5;226m ⠀⣴⣄⣠⠾⠛⠿⠃⠈⠻⣿⢿⣿⣄
\e[5m\e[38;5;202m ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⠁⢋⡙⠁⠀⡝⠀⠀⠀⠀⣀⡸⠋⠁⠀⠀⠹⡀⠀⠈⠈⠆⢹⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\e[38;5;46m\e[25m \e[38;5;226m⢀⡀⣸⠿⢃\e[38;5;223m⣴⣿⣶⣶⠾⣶⣼⣤⣤\e[38;5;226m⠸⣧\e[38;5;46m⠻⣷⣦⣤⡀
\e[5m\e[38;5;202m ⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣿⣁⡡⣴⡏⠀⠀⠀⢀⠀⢧⣀⠄⠀⠀⠀⣀⣰⠆⢀⠁⠀⠀⢈⣶⡤⣀⢹⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀\e[38;5;46m\e[25m ⠀⠀⠀⠀ ⣠⣶⣿⣧\e[38;5;226m⢋\e[38;5;223m⣦⢶⣿⡿⣿⣿⡷⣌⣿⢿⢁\e[38;5;226m⢼⣿⡎\e[38;5;46m⠿⣿⣿⣿⣷⣤⡀
\e[5m\e[38;5;202m ⠀⠀⠀⠀⠀⠀⣠⢴⠟⢁⡝⠀⠁⠀⠃⠉⠀⠀⠘⣯⠀⡀⠾⣤⣄⣠⢤⠾⠄⠀⣸⠖⠀⠀⠈⠀⠃⠀⠀⠹⡄⠙⣶⢤⡀⠀⠀⠀⠀⠀\e[38;5;46m\e[25m ⠀⠀⠀⠀
@LuMarans30
LuMarans30 / epicycloid.py
Created August 28, 2023 15:04
A simple python script that generates custom epicycloidal figures frame by frame. (ffmpeg is required for the video generation)
import numpy as np
import matplotlib.pyplot as plt
import sys
import os
import platform
import subprocess
from progress.bar import IncrementalBar
def is_tool(name):
@LuMarans30
LuMarans30 / wol.ps1
Last active January 23, 2023 17:13
A simple powershell script to turn on a computer in the same network knowing its MAC address (you must enable the wake on lan function in the BIOS/UEFI of the target).
$Mac = $null
if ($args.count -eq 1 ) {
$Mac = $args[0]
$Mac | out-file -filepath .\mac.txt -width 200
Write-Output "The next time you won't have to re-enter the MAC address because it has been saved on a file in this directory."
}
else{
$file_data = Get-Content .\mac.txt
if ( $file_data -eq $null ) {