I hereby claim:
- I am josue on github.
- I am josue (https://keybase.io/josue) on keybase.
- I have a public key whose fingerprint is 6541 1A36 1AD4 7B3F DE71 BA63 0FDD C51D 0813 AEC7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # author: Josue Rodriguez <[email protected]> | |
| # (c) October 2016 | |
| display_usage_help () { | |
| echo -e "[Usage]" | |
| echo -e "\t${0} -c <mysql data dir> <data-only name> <server name> <server port>" | |
| echo | |
| echo -e "[Examples]" |
| #/bin/bash | |
| check_xdebug_installed () { | |
| INSTALLED=`php -m | grep xdebug` | |
| if [ "$INSTALLED" = "" ]; then | |
| echo "PHP extention 'xdebug' must be installed." | |
| exit 1 | |
| fi | |
| } |
| <?php | |
| require_once('test_jobs.php'); | |
| if (php_sapi_name() === 'cli') { | |
| $upload_options = getopt("",array( | |
| 'upload:', // --upload=5 | |
| )); | |
| } | |
| else if (!empty($_GET['upload'])) { | |
| $upload_options = $_GET; |
| <?php | |
| // check required Redis module | |
| if (!class_exists('Redis')) { | |
| throw new Exception("Requires PHP Redis extension. Install via: sudo apt-get install php5-redis"); | |
| } | |
| class TestJobs { | |
| private $redisInstance = null; | |
| private $redisConfig = array(); |
| #!/bin/sh | |
| # Ensure file is executable: chmod +x es_quick_info.sh | |
| # Use given host or default to localhost | |
| [ "$1" != "" ] && HOST=$1 || HOST="localhost:9200" | |
| ES_EXIST=`curl -s "$HOST" | grep 'ok'` | |
| if [ "$ES_EXIST" = "" ]; then |
| #!/bin/sh | |
| APP="mysql-sniffer" | |
| LOG="/tmp/mysql-sniffer.log" | |
| PID="" | |
| get_pid () { | |
| PID=`ps aux | grep "$APP" | grep -v grep | grep -v "$0" | awk '{ print $2 }'` | |
| } |
| <?php | |
| // Mixpanel - Simple wrapper using only the mixpanel.track() endpoint. | |
| function Mixpanel($event, $props = array(), $distinct_id = 0) { | |
| $api_key = '{api-key}'; | |
| $data = array( | |
| 'event' => $event, | |
| 'properties' => array( | |
| 'distinct_id' => $distinct_id, | |
| 'token' => $api_key, | |
| 'time' => time() |
| #!/bin/sh | |
| # Required: npm install elasticdump | |
| # Usage: ./{script} {host-1} {index-to-backup} {host-2} {new-index} | |
| ES_OLD_HOST=$1 | |
| ES_OLD_INDEX=$2 | |
| ES_NEW_HOST=$3 | |
| ES_NEW_INDEX=$4 |