linuxFri, 25 Nov 2022
Block specific ip with iptables by 1st agument and check if command has argument
if [ $# -eq 0 ] then echo "You must type an IP address!" else sudo iptables -A INPUT -s "$1" -j DROP echo "IP address $1 is now blocked!" fi
Generation
Block specific ip with iptables by 1st agument and check if command has argument
if [ $# -eq 0 ] then echo "You must type an IP address!" else sudo iptables -A INPUT -s "$1" -j DROP echo "IP address $1 is now blocked!" fi
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description