sudo apt-get purge -y maven
wget http://www-eu.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
tar -zxf apache-maven-3.3.3-bin.tar.gz
sudo cp -R apache-maven-3.3.3 /usr/local
  
    
      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
    
  
  
    
  | shasum -a 256 | xxd -r -p | base64 | 
  
    
      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
    
  
  
    
  | <!-- MIT License --> | |
| <html> | |
| <head> | |
| <script> | |
| function generateKey(alg, scope) { | |
| return new Promise(function(resolve) { | |
| var genkey = crypto.subtle.generateKey(alg, true, scope) | |
| genkey.then(function (pair) { | |
| resolve(pair) | |
| }) | 
  
    
      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
    
  
  
    
  | docker run \ | |
| --name={{.Name}} \ | |
| {{range $e := .Config.Env}}--env={{printf "%q" $e}} \ | |
| {{end}}{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ | |
| {{end}}{{end}}{{range $n, $conf := .NetworkSettings.Networks}}{{with $conf}}--network {{printf "%q" $n}} \ | |
| {{range $conf.Aliases}}--network-alias {{printf "%q" .}} {{end}} \ | |
| {{end}}{{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from={{printf "%q" .}} \ | |
| {{end}}{{range $v := .HostConfig.Binds}}--volume={{printf "%q" .}} \ | |
| {{end}}{{range $l, $v := .Config.Labels}}--label {{printf "%q" $l}}={{printf "%q" $v}} \ | |
| {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{printf "%q" .}} \ | 
  
    
      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
    
  
  
    
  | http localhost:8001/routes | jq 'select(.data[].paths | contains(["/api"]))' | 
  
    
      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
    
  
  
    
  | filebeat.prospectors: | |
| - type: log | |
| enabled: true | |
| paths: | |
| - /var/lib/docker/containers/*/*.log | |
| multiline.pattern: '^[a-zA-Z0-9].+:' | |
| multiline.negate: true | |
| multiline.match: after | |
| json.message_key: log | |
| json.keys_under_root: true | 
  
    
      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 apt-get install -y software-properties-common | |
| sudo apt-add-repository -y ppa:ansible/ansible | |
| sudo apt-add-repository -y ppa:git-core/ppa | |
| sudo apt-get update | |
| sudo apt-get install -y openjdk-8-jdk-headless | |
| sudo apt-get install -y ansible | |
| sudo apt-get install -y git | 
  
    
      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
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| struct _Node { | |
| struct _Node *left; | |
| int val; | |
| struct _Node *right; | |
| }; | |
| typedef struct _Node Node; | 
  
    
      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
    
  
  
    
  | package main | |
| import "fmt" | |
| type Areaer interface { | |
| Area() float64 | |
| } | |
| type Shape struct { | |
| Areaer | |
| } | 
  
    
      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
    
  
  
    
  | package main | |
| import "fmt" | |
| type Signal string | |
| func eventLoop(addEvent chan Signal, echoEvent chan Signal, quit chan bool) { | |
| for { | |
| select { | |
| case obj := <-addEvent: | 
NewerOlder