Skip to content

Instantly share code, notes, and snippets.

View n-i-m-a's full-sized avatar

Nima Amini n-i-m-a

View GitHub Profile
@n-i-m-a
n-i-m-a / LICENSE.md
Created December 30, 2022 13:51 — forked from sj26/LICENSE.md
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

@n-i-m-a
n-i-m-a / iptables_rules.sh
Created December 4, 2016 13:05 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP