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
    
  
  
    
  | <repository> | |
| <id>nexus-aliyun</id> | |
| <name>Nexus aliyun</name> | |
| <url>http://maven.aliyun.com/nexus/content/groups/public</url> | |
| </repository> | 
  
    
      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
    
  
  
    
  | sudo update-manager -c -d | |
| 注意不要在安装过程中锁屏 | 
  
    
      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
    
  
  
    
  | apt -y update && apt-get install -y python-pip && LC_ALL=C pip install shadowsocks | |
| echo ' | |
| { | |
| "server":"$SERVER", | |
| "server_port":8388, | |
| "local_address": "127.0.0.1", | |
| "local_port":1080, | |
| "password":"$PASSWORD", | |
| "timeout":300, | |
| "method":"RC4-MD5", | 
  
    
      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
    
  
  
    
  | import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| public class TrainMap { | |
| private static final char DEFAULT_DELIMITER = '-'; | |
| private List<Character> idxList = new ArrayList<>(); | |
| private List<Line> lines = new ArrayList<>(); | |
| private int[][] distances; | 
  
    
      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
    
  
  
    
  | import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| public class TrainMap { | |
| private static final char DEFAULT_DELIMITER = '-'; | |
| private List<Character> idxList = new ArrayList<>(); | |
| private List<Line> lines = new ArrayList<>(); | |
| private int[][] distances; | 
  
    
      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
    
  
  
    
  | @Configuration | |
| @ConditionalOnClass(DruidDataSource.class) | |
| @ConditionalOnProperty(name = "spring.datasource.type", havingValue = "com.alibaba.druid.pool.DruidDataSource", matchIfMissing = true) | |
| @EnableConfigurationProperties({DataSourceProperties.class, DruidAutoConfiguration.DruidProperties.class}) | |
| public class DruidAutoConfiguration { | |
| @Bean | |
| public DataSource dataSource(DataSourceProperties dataSourceProperties, DruidProperties druidProperties) { | |
| DataSource dataSource = dataSourceProperties.initializeDataSourceBuilder().build(); | 
  
    
      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
    
  
  
    
  | bootstrap | 
  
    
      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
    
  
  
    
  | bootstrap | 
  
    
      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
    
  
  
    
  | [bash] | |
| #! /bin/bash | |
| #File: kill_regionserver.sh | |
| cat slaves.list|while read line | |
| do | |
| PRC=`echo "jps|grep HRegion"|ssh $line -T` | |
| if [ -n "$PRC" ] | |
| then | |
| echo "$line: Killing RegionServer --> $PRC" |