Skip to content

Instantly share code, notes, and snippets.

View luigiMinardi's full-sized avatar
🎯
Focusing

Luigi Minardi luigiMinardi

🎯
Focusing
View GitHub Profile
@luigiMinardi
luigiMinardi / duplicate-files.md
Last active October 13, 2023 21:10
Bash adventures

Use jdupes to recursivelly search a directory for duplicates (symlinks also searched) then save results in a file.

jdupes -sr . > dups.txt

Go through the first group of duplicates (original and duplicate(s)) on the .txt and open it with the default option that you have (so that you can compare both and choose if you want to delete one of them or not).

cat dups.txt | while read line; do if [ -z "$line" ]; then break; else xdg-open $line; fi; done 
@luigiMinardi
luigiMinardi / AddYourCertificateToLinkedIn.js
Last active February 13, 2026 18:28
Add your Boot.dev certificate to LinkedIn
// ==UserScript==
// @name Button to add boot.dev certificate to linkedin
// @namespace https://github.com/luigiMinardi
// @match https://www.boot.dev/certificate/*
// @grant none
// @version 0.6.10
// @author luigiMinardi
// @license MIT
// @description Adds a button to add your boot.dev certificate to linkedin
// @homepageURL https://gist.github.com/luigiMinardi/62b0492d187e39e495272b10d40f6aee
@luigiMinardi
luigiMinardi / .config-picom.conf
Last active December 24, 2025 12:59
.config/i3wm/config
#################################
# Shadows #
#################################
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
# shadow = false
@luigiMinardi
luigiMinardi / changebg.sh
Last active October 16, 2024 12:32
Some .sh
# Change the background video on manjaro xfce using xwinwrap and mpv
echo "$1 the path of your new bg"
kill $(pgrep xwinwrap)
echo "xwinwrap -fs -fdt -ni -b -nf -- mpv -wid %WID --no-audio --loop \"$1\"" | sudo tee /usr/local/bin/Live.sh
xwinwrap -fs -fdt -ni -b -nf -- mpv -wid %WID --no-audio --loop "$1" & disown
# tutorial at https://forum.manjaro.org/t/howto-have-live-wallpaper-on-manjaro-gnome/64875
# Live.sh has the following
@luigiMinardi
luigiMinardi / usr-share-fastfetch-presets-bugConf.jsonc
Created January 18, 2025 14:05
fastfetch gaming debug report config.
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": null,
//INFO: To find how to format do `fastfetch -h module-format`
"modules": [
"os",
{
"type": "host",
"key": "Motherboard",
},
@luigiMinardi
luigiMinardi / bootbot1.69.md
Last active July 24, 2025 22:22
Adding discord thread.

Boot bot v1.69 QoL Slash Commands Upgrade

I will list the commands and each argument the command should have or sub commands it should have.

I'm using DiscordJS API wrapper docs as examples since they're a complete and
well documented wrapper, but you can use any lib listed on libs.advaith.io that
are in an up to date version and have most features available.

/ban

The Definitive Guide to UV: Python Packaging in Production

Document Version: 1.0 (January 2025)
UV Version: 0.5.x (Examples tested with 0.5.0)
Last Updated: January 2025
Status: UV is under active development - features may change

Table of Contents

  1. Introduction and Prerequisites
  2. Quick Start