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 | |
| """An iterative DNS resolver from raw sockets. No libraries, no recursion bit. | |
| Usage: python3 raw_socket_resolver.py example.com | |
| Starts at a root server and follows referrals down the hierarchy, the same | |
| walk `dig +trace` shows you: root -> TLD -> authoritative. | |
| """ | |
| import random | |
| import socket |
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 torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| from torch.utils.data import DataLoader, TensorDataset | |
| import time | |
| def check_gpu_availability(): | |
| """Check and display GPU availability information""" | |
| print("=" * 50) | |
| print("GPU AVAILABILITY CHECK") |