Skip to content

Instantly share code, notes, and snippets.

Avatar
😕
working hard

Hisune hisune

😕
working hard
View GitHub Profile
@hisune
hisune / color.php
Last active May 25, 2018
Light up your code
View color.php
/**
* 按颜色输出
* 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)
{
@hisune
hisune / Apple_mobile_device_types.txt
Created Apr 15, 2020 — 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
View Apple_mobile_device_types.txt
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 / update-v2ray-geo.sh
Created Jun 5, 2020 — forked from maddie/update-v2ray-geo.sh
Script for updating V2Ray geoip.dat and geosite.dat on OpenWRT
View update-v2ray-geo.sh
#!/bin/sh
LOGGER_TAG=v2ray-geodata-updater
log () {
echo $@
logger -t $LOGGER_TAG "$@"
}
log "fetching geoip url..."