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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
public class KickRiBaoAss { | |
public static void main(String[] args) throws IOException, ParseException { | |
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
/** | |
* Copyright (c) 2013 by futeng www.futeng.org | |
* | |
* @{#} @StringParseUtils.java Create on @2013-5-22 @下午6:03:03 | |
*/ | |
package com.ustcinfo.inm.data.bolt.parser.utils; | |
/** | |
* | |
* @author <a href="mailto:ifuteng@gmail.com">futeng</a> |
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 | |
exec 0< /etc/passwd | |
while read line | |
do | |
echo $line | |
done |
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 | |
# Title: Show HOST basic informations | |
# Author: ifuteng@gmail.com | |
# Date: 2017/05/21 | |
# 1. 内核 | |
echo "Core: "`uname -a` | |
# 2. 操作系统 | |
echo "OS: "`head -n 1 /etc/issue` | |
# 3. CPU信息 |
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 | |
# name: mgr-init.sh | |
# author: ifuteng@gmail.com | |
# date: 2017/05/23 | |
if [ -z "$1"]; then | |
echo "port should not be empty!" | |
exit 1 | |
fi |
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
SET SQL_LOG_BIN=0; | |
CREATE USER rpl_user@'%'; | |
GRANT REPLICATION SLAVE ON *.* TO rpl_user@'%' IDENTIFIED BY 'rpl_pass'; | |
SET SQL_LOG_BIN=1; | |
CHANGE MASTER TO MASTER_USER='rpl_user', MASTER_PASSWORD='rpl_pass' FOR CHANNEL 'group_replication_recovery'; |
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] | |
port = 3308 | |
socket = /tmp/mysql3308.sock | |
[mysql] | |
prompt = mysql [\d]> | |
default_character_set = utf8 | |
no-auto-rehash | |
[mysqld] |
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] | |
port = 3307 | |
socket = /tmp/mysql3307.sock | |
[mysql] | |
prompt = mysql [\d]> | |
default_character_set = utf8 | |
no-auto-rehash | |
[mysqld] |
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] | |
port = 3306 | |
socket = /tmp/mysql3306.sock | |
[mysql] | |
prompt = mysql [\d]> | |
default_character_set = utf8 | |
no-auto-rehash | |
[mysqld] |
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 | |
# Name : mgr-start.sh | |
if [ -z $1 ]; then | |
echo "port should not be empty!" | |
exit 1 | |
fi | |
# Init MySQL | |
/usr/local/mysql/bin/mysqld --defaults-file=/data/mysql/mysql_$1/my$1.cnf --initialize-insecure |
OlderNewer