Skip to content

Instantly share code, notes, and snippets.

View alessandroamella's full-sized avatar

Alessandro Amella alessandroamella

View GitHub Profile
@alessandroamella
alessandroamella / listcontents.py
Last active June 29, 2025 16:36
listcontents - list all the files along with their content, perfect to give to AI
#!/usr/bin/env python3
import argparse
import os
import magic
import pathlib
import logging
from typing import List, Optional
# Set up logging
logging.basicConfig(level=logging.WARNING)
@alessandroamella
alessandroamella / ts-starter.sh
Last active June 2, 2025 12:53
TypeScript starter (pnpm, TypeScript, Husky, Biome)
#!/bin/bash
# TypeScript Starter Project Initialization Script
set -e
# Check if path parameter is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <project-path>"
echo "Example: $0 ./my-project"
exit 1
@alessandroamella
alessandroamella / Instagram Comment Activity Deleter
Created April 24, 2025 02:58 — forked from braunglasrakete/Instagram Comment Activity Deleter
Instagram Comment Activity Deleter: Automate the deletion of all your Instagram comments from the 'Your Activity' section. Perfect for quick digital clean-up. Also works for story replies. For Likes, see my other project.
/**
* Instagram Comment Auto-Deletion Script
* original by sbolel, updated to work with current page layout as of April 2025
* improved with better scrolling functionality for comment containers
*
* keep batch size low to reduce risk of Instagram throwing the SOMETHING WENT WRONG error
* it waits a little before selecting comments on reload to not throw it out of loop
* it's still not perfect, it occasionally throws SOMETHING WENT WRONG, but better semi-automated than not working at all
* if you're getting the message that there are no comments to show and you didn't comment on anything,
* go back to Home, and comment on something, then come back