Skip to content

Instantly share code, notes, and snippets.

@voxx
voxx / RHEL7-NFS-Server-Client-SETUP.md
Last active August 4, 2022 07:42
RHEL7 NFS Server and Client Setup for Load Balanced Magento 2.2 app

INSTALL NFS SERVER COMPONENTS

$ sudo yum install nfs-utils

START SERVER DAEMONS

$ sudo systemctl enable rpcbind
$ sudo systemctl enable nfs-server
Created symlink from /etc/systemd/system/multi-user.target.wants/nfs-server.service to /usr/lib/systemd/system/nfs-server.service.
@voxx
voxx / RHEL7-MULTIPLE-REDIS-POOLS.md
Last active July 25, 2018 17:25 — forked from EddyF/linux-rhel7-run-multiple-redis-instances.md
Run multiple Redis v4.x+ pools on the same RHEL 7.x+ server (NON SENTINEL)

Create a new redis .conf file for each additional redis instance.

$ sudo cp /etc/redis.conf /etc/redis-xxx.conf

Edit the /etc/redis-xxx.conf as illustrated below.

$ sudo nano /etc/redis-xxx.conf

...
@voxx
voxx / remove-missed-spawns.sql
Last active December 7, 2017 23:16
Manually remove spawn points and related spawn data for spawns that have an excessive missed count. A high missed count can indicate that the spawn point may have been removed or may have been previously mis-identified.
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
{
"gyms":{
"enabled":"False",
"ignore_neutral":"True",
"filters":[
{
"from_team":["Valor", "Instinct", "Mystic"], "to_team":["Valor", "Instinct", "Mystic"],
"min_dist":"0", "max_dist":"inf"
}
]
@voxx
voxx / export-meta.php
Created December 31, 2016 11:51
Parse pokemongo game master meta json file and output valid php for src/Api/Pokemon/Data/PokemonMetaRegistry.php
<?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;