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 January 11, 2024 20:08
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 January 3, 2025 00:29
.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",
},