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/sh | |
LOGGER_TAG=v2ray-geodata-updater | |
log () { | |
echo $@ | |
logger -t $LOGGER_TAG "$@" | |
} | |
log "fetching geoip url..." |
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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S | |
iPhone5,1 : iPhone 5 (GSM) |
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
/** | |
* 按颜色输出 | |
* https://hisune.com/view/60/php-cli-colors-output | |
* usage: color('error %e, notice %n, normal %s', 'xx', 'oo', 'yes ppg') | |
* @param $format | |
* @param mixed ...$args | |
* @return mixed | |
*/ | |
function color($format, ...$args) | |
{ |