This file contains hidden or 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
Canidae | |
Felidae | |
Cat | |
Cattle | |
Dog | |
Donkey | |
Goat | |
Guinea pig | |
Horse | |
Pig |
This file contains hidden or 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
set RABBITMQ_NODE_PORT=6001 | |
set RABBITMQ_NODENAME=rabbit1 | |
set RABBITMQ_SERVICE_NAME=rabbit1 | |
set RABBITMQ_SERVER_START_ARGS=-rabbitmq_management listener [{port,15672}] | |
call rabbitmq-server -detached | |
set RABBITMQ_NODE_PORT=6002 | |
set RABBITMQ_NODENAME=rabbit2 | |
set RABBITMQ_SERVICE_NAME=rabbit2 | |
set RABBITMQ_SERVER_START_ARGS=-rabbitmq_management listener [{port,15673}] | |
call rabbitmq-server -detached |
This file contains hidden or 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 | |
// Converts a number into a short version, eg: 1000 -> 1k | |
// Based on: http://stackoverflow.com/a/4371114 | |
function number_format_short( $n, $precision = 1 ) { | |
if ($n < 900) { | |
// 0 - 900 | |
$n_format = number_format($n, $precision); | |
$suffix = ''; | |
} else if ($n < 900000) { |
This file contains hidden or 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 | |
/* | |
I wrote this function to progressively obfuscate text in MAKEbook.io. When it KINDA worked, I just used it. | |
It can take a lot of improvement. I kinda just tweaked the values until it was good enough. It's not SO progressive though. | |
It takes all the output of your PHP scripts via ob_start(), reroutes that to the obfuscation function. | |
You should check if user paid for book or not, then either run ob_start or not! | |