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
// load variables | |
require('dotenv').config(); | |
// load dependencies | |
const crypto = require('crypto'); | |
'use strict'; | |
const APP_KEY = process.env.APP_KEY; |
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
# .gz | |
mysqldump -h 'db.example.com' -u'username' -p'password' 'database' --single-transaction | gzip -c | cat > 'database_backup_2014-01-01.sql.gz' | |
# .sql | |
mysqldump -h 'db.example.com' -u'username' -p'password' 'database' --single-transaction > 'database_backup_2014-01-01.sql' |
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
<?php | |
/* NOTICE: For miniplay connect to work, your domain must be allowed by us, contact us to request access */ | |
/* 1. Parameters decoding ============================================================================================ */ | |
/* Only if your system configuration or language doesn't automatically decodes it */ | |
foreach ($_GET as $key => $value) $_GET[$key] = urldecode($value); | |
/* 2. Parameters validation (mp_*) =================================================================================== */ | |
/* External games doesn't receive neither parameters or signature, no validation needed */ | |