This file contains 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 <Foundation/Foundation.h> | |
@interface SuperClass : NSObject | |
@end | |
@implementation SuperClass | |
@end |
This file contains 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
{"sig":"aa78b347409d0de4b30afe1fb093445d3c88b14546abc1655e725f1355c42a2921963513aa280a92f5c6ebd133185c2fd38e6d86b3eec93547547c7b51de575c0","msghash":"4fa904c70bf5f968e2adc169d1e653e2ba6bcb33dd2c354b40568c1751f01215"} |
This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
type IPAddr [4]byte | |
func (p IPAddr) String() string { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type ErrNegativeSqrt float64 | |
func (e ErrNegativeSqrt) Error() string { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"golang.org/x/tour/tree" | |
) | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |
This file contains 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
ark -b -a -o <destination> file.tar.gz | |
-b extract without opening the GUI | |
-a auto subfolder | |
-o destination of the extracted file |
This file contains 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 | |
# | |
## From https://github.com/Loyalsoldier/geoip 少了 MaxMind GeoLite2 | |
# 主要是给mosdns 用,text 格式 | |
urls=("https://raw.githubusercontent.com/gaoyifan/china-operator-ip/ip-lists/china6.txt" "https://raw.githubusercontent.com/gaoyifan/china-operator-ip/ip-lists/china.txt" "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt") | |
## Download each file | |
for url in "${urls[@]}"; do | |
wget -P .temp/ "$url" |