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
[client] | |
host=localhost | |
port=3306 | |
user=root | |
password=root |
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
# 使用 ssh 下载远程服务器上的 mysql 数据库 | |
SSH_HOST=remote_ssh_host | |
SSH_USER=root | |
SSH_BIN="ssh $SSH_USER@$SSH_HOST" | |
REMOTE_DATABASE=remote_db_name | |
REMOTE_HOST=remote_host_ip | |
REMOTE_PORT=3306 | |
REMOTE_USER=root |
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
#!/usr/bin/env bash | |
REDIS_CLUSTER_HOME=/usr/local/redis-cluster | |
cd $REDIS_CLUSTER_HOME | |
CLUSTERS=(7000 7001 7002 7003 7004 7005) | |
start() { |
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 | |
if (!function_exists('pcntl_fork')) { | |
exit('请重新安装编译 PHP,开启 --enable-pcntl 扩展!'); | |
} | |
if (!class_exists('Redis')) { | |
exit('请安装扩展: pecl install redis'); | |
} |
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
{ | |
"datacenter": "oms-java", | |
"data_dir": "/data/consul/data/", | |
"pid_file": "/data/consul/consul.pid", | |
"log_file": "/data/consul/logs/", | |
"log_rotate_bytes": 500000000, | |
"log_level": "INFO", | |
"node_name": "node1", | |
"server": true, | |
"bootstrap": true, |
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
#!/bin/bash | |
# Author: Remigijus Jarmalavičius <[email protected]> | |
# Author: Vytautas Povilaitis <[email protected]> | |
# | |
# XDebug check added by William Clemens <http://github.com/wesclemens> | |
# Handle spaces in filenames Dave Barnwell <https://github.com/freshsauce> | |
ROOT_DIR="$(pwd)/" | |
LIST=$(git diff-index --cached --name-only --diff-filter=ACMR HEAD) | |
ERRORS_BUFFER="" |
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 | |
$fixers = [ | |
'@PSR1' => true, | |
'@PSR2' => true, | |
'@Symfony' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => [ | |
'syntax' => 'short', |
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
#!/usr/bin/env bash | |
PATTERN=$1 | |
if [ -z $PATTERN ] ; then | |
echo "Usage: fkill <GREP PATTERN>" | |
exit -1 | |
fi | |
CMD=$(/bin/ps -ef | grep -v grep | grep -v fkill | grep "$PATTERN") |
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
#!/usr/bin/env bash | |
if [ -f /usr/local/bin/php7 ]; then | |
php=/usr/local/bin/php7 | |
else | |
php=`which php` | |
fi | |
check=$($php -r "echo version_compare(PHP_VERSION, '5.6.0') >= 0 ? 'yes' : 'no';") | |
if [ $check != "yes" ]; then |
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
[exclude] | |
ignores=*.log,*.pyc | |
[hosts] | |
sms=myhost.com::prepare_home/sms |
NewerOlder