Skip to content

Instantly share code, notes, and snippets.

View eliascotto's full-sized avatar

Elia Scotto eliascotto

View GitHub Profile
@eliascotto
eliascotto / clean-all-cargo.sh
Last active December 18, 2025 06:45
Remove artifacts from the all the cargo target directories in a subdirectory
#!/bin/bash
# Check if a folder was passed as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <path-to-folder>"
exit 1
fi
# Absolute path of the base directory
BASE_DIR="$1"
@eliascotto
eliascotto / remove-all-node-modules.sh
Last active December 18, 2025 06:44
Remove all node_modules folders in a subdirectory
#!/bin/bash
# Check if a folder was passed as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <path-to-folder>"
exit 1
fi
BASE_DIR="$1"
@eliascotto
eliascotto / diff-viewver.html
Created December 18, 2025 06:40
2/3 files diff viewver
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Diff Viewer</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsdiff/5.1.0/diff.min.js"></script>
<script>
tailwind.config = {