$ sudo cp /etc/redis.conf /etc/redis-xxx.conf
$ sudo nano /etc/redis-xxx.conf
...
<?php | |
$str = file_get_contents('051_meta.json'); | |
$json = json_decode($str, true); | |
//echo count($json["itemTemplates"]); | |
//var_dump($json["itemTemplates"][327]); //Chikorita | |
//var_dump($json["itemTemplates"][469]); //Celebi | |
echo '<pre>'; | |
$count = 0; |
{ | |
"gyms":{ | |
"enabled":"False", | |
"ignore_neutral":"True", | |
"filters":[ | |
{ | |
"from_team":["Valor", "Instinct", "Mystic"], "to_team":["Valor", "Instinct", "Mystic"], | |
"min_dist":"0", "max_dist":"inf" | |
} | |
] |
use rocketmap; | |
SET foreign_key_checks = 0; | |
DELETE FROM scanspawnpoint where spawnpoint_id in ( | |
SELECT id FROM spawnpoint where missed_count > 9 | |
); | |
DELETE FROM spawnpointdetectiondata where spawnpoint_id in ( | |
SELECT id FROM spawnpoint where missed_count > 9 |