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
| awk -F';' -v OFS=';' '{ | |
| key = $5 | |
| if (!(key in seen)) { | |
| print $0 | |
| seen[key]=1 | |
| } | |
| }' |
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
| import java.io.*; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class URLClient { | |
| public String sendGetRequest(String urlString) throws IOException { | |
| // ambiguous if FTP or HTTP | |
| URL url = new URL(urlString); | |
| URLConnection urlConnection = url.openConnection(); |
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
| #!/usr/bin/env python3 | |
| import urllib.request as ur | |
| import sys | |
| import json | |
| class color: | |
| PURPLE = '\033[95m' | |
| CYAN = '\033[96m' | |
| DARKCYAN = '\033[36m' |