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/bash | |
| OUTPUT_FILE="github_check.csv" | |
| if [ ! -f "$OUTPUT_FILE" ]; then | |
| echo "timestamp,status,response_time" > "$OUTPUT_FILE" | |
| fi | |
| USER_AGENT="github_check.sh/1.0 gist.github.com/Cuthead/257c2f59015c9ffa41b5ea4adcb81163 (Purpose: Monitoring GitHub availability in China for research)" |
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/sbin/nft -f | |
| set dc1 { # American | |
| type ipv6_addr | |
| flags interval | |
| elements = { 2001:b28:f23d:f001::a } | |
| } | |
| set dc3 { # Unknown | |
| type ipv6_addr |