Skip to content

Instantly share code, notes, and snippets.

View nickolasdeluca's full-sized avatar
👾

Nickolas de Luca Alberton nickolasdeluca

👾
View GitHub Profile
@nickolasdeluca
nickolasdeluca / replace-iptables-for-ufw.sh
Last active February 27, 2026 12:29
replace-iptables-for-ufw
#!/usr/bin/env bash
set -euo pipefail
# Must run as root (or via sudo)
if [[ "${EUID}" -ne 0 ]]; then
echo "Please run as root (e.g., sudo $0)"
exit 1
fi
echo "==> Flushing iptables (filter/nat/mangle/raw) and resetting policies to ACCEPT..."
@nickolasdeluca
nickolasdeluca / revert-windows11-24h2-block-insecure-network.md
Last active March 12, 2025 11:35
revert-windows11-24h2-block-insecure-network

On Powershell in administrator mode Run the following:

Set-SmbClientConfiguration -RequireSecuritySignature $false

And then this one

Set-SmbClientConfiguration -EnableInsecureGuestLogons $true
@nickolasdeluca
nickolasdeluca / ps-command-zip-indv
Created June 4, 2024 17:09
Powershell command to zip every file inside a folder individually
Get-ChildItem "." | ForEach-Object { Compress-Archive -path $_.Name -destinationPath "$($_.Basename).zip"}
@nickolasdeluca
nickolasdeluca / flutter-disable-enable-environments.md
Last active July 9, 2022 18:33
Commands to disable/enable Flutter environments

Commands to disable environments

Disable Web environment

flutter config --no-enable-web

Disable MacOS environment

flutter config --no-enable-macos-desktop