Skip to content

Instantly share code, notes, and snippets.

View T4ng40's full-sized avatar
🎯
Focusing

T4ng40

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Update package index and install prerequisites
echo "Updating package index and installing prerequisites..."
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
# Add Docker's official GPG key
echo "Adding Docker's official GPG key..."
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#!/bin/bash
# iptables_rules.sh
#
# This script applies a series of iptables rules to drop traffic from specified IP ranges.
#
# INSTALLATION:
# For Debian/Ubuntu:
# sudo apt-get update && sudo apt-get install iptables iptables-persistent
#
# For CentOS/RHEL:
@T4ng40
T4ng40 / wsl_mount.md
Last active March 5, 2025 01:48
WSL2 Corrupted Files

WSL Disk and Filesystem Operations

This gist contains commands to:

  1. Mount the VHDX File: Mount the ext4.vhdx file in bare mode.
  2. Run Filesystem Check: Execute a forced filesystem check on /dev/sda.
  3. List Block Devices: Display a list of block devices.

@T4ng40
T4ng40 / clean_cache_docker.md
Created December 6, 2022 21:29 — forked from oliveira-andre/clean_cache_docker.md
This was created when my containers doesn't build because of not enough space left in cache

How to clean docker cache

Removing simple cache to just free some space in device

sudo docker image prune -f && sudo docker container prune -f

Removing all cache