Skip to content

Instantly share code, notes, and snippets.

View hisune's full-sized avatar
😕
working hard

Hisune hisune

😕
working hard
View GitHub Profile
@hisune
hisune / update-v2ray-geo.sh
Created June 5, 2020 04:02 — forked from maddie/update-v2ray-geo.sh
Script for updating V2Ray geoip.dat and geosite.dat on OpenWRT
#!/bin/sh
LOGGER_TAG=v2ray-geodata-updater
log () {
echo $@
logger -t $LOGGER_TAG "$@"
}
log "fetching geoip url..."
@hisune
hisune / Apple_mobile_device_types.txt
Created April 15, 2020 07:43 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
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)
@hisune
hisune / color.php
Last active May 25, 2018 09:01
Light up your code
/**
* 按颜色输出
* 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)
{