This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "Afghanistan", | |
| "flag": "🇦🇫", | |
| "code": "AF", | |
| "dial_code": "+93" | |
| }, | |
| { | |
| "name": "Åland Islands", | |
| "flag": "🇦🇽", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| const text = "234acc"; | |
| /// Print formated string | |
| print(generateString(text)); | |
| } | |
| String generateString(String text) { | |
| /// Empty string to hold the new string | |
| var textCopy = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # get broadcast addresses for each network | |
| net=`ifconfig | grep -o -E "Bcast:(.*?) " | cut -f2 -d":"` | |
| # loop over networks running the scan | |
| for n in $net; | |
| do | |
| # first find SSH machines silently to prime the arp table | |
| nmap -T4 -n -p 22 --open --min-parallelism 100 "$n/24" | grep -e "scan report for" -e "ssh" > /dev/null |