Download CMake from: https://cmake.org/download/
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| # $ lsb_release -a | |
| # No LSB modules are available. | |
| # Distributor ID: Ubuntu | |
| # Description: Ubuntu 16.04.5 LTS | |
| # Release: 16.04 | |
| # Codename: xenial | |
| # $ uname -a | |
| # Linux xps 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| sun.hac.lp1.d4c.nintendo.net | |
| beach.hac.lp1.eshop.nintendo.net | |
| aauth-lp1.ndas.srv.nintendo.net | |
| accounts.nintendo.com | |
| api.accounts.nintendo.com | |
| app-a04.lp1.npns.srv.nintendo.net | |
| aqua.hac.lp1.d4c.nintendo.net | |
| atum.hac.lp1.d4c.nintendo.net | |
| bcat-data-lp1.cdn.nintendo.net | |
| bcat-list-lp1.cdn.nintendo.net |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>in.fourplex.aria2</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/bin/aria2c</string> |
| ## history search | |
| "\e[A": history-search-backward | |
| "\e[B": history-search-forward | |
| ## visible ring | |
| set visible-stats on | |
| ## menu complete | |
| "\C-n": menu-complete | |
| ## 快捷键备忘 | |
| ## Ctrl + a : 光标移到行首。 |
| var iframe = document.getElementsByName('f3')[0]; //获取显示帖子内容的 iframe | |
| //初始化抓取结果,它是一个 HTML 页面,因此先把头部以及简单的几个样式放进去 | |
| var page = '<!DOCTYPE html><html><head><title>SMTH</title><style>div {border-top: 1px solid yellowgreen; padding: 10px; color: royalblue;}</style></head><body>'; | |
| //点击打开第一个帖子就可以激活下面的函数执行 | |
| iframe.onload = function(){ | |
| var innerDoc = iframe.contentDocument || iframe.contentWindow.document; //获取 iframe 里的 document 对象 | |
| var post = innerDoc.getElementsByClassName('article')[0].innerHTML; //获取帖子内容对应的 HTML 元素 | |
| page += '<div>'+post.replace(/src="/g, 'src="http://www.2.newsmth.net/')+'</div>'; //把当前的帖子内容加入抓取结果的 HTML 页面里 | |
| var next = innerDoc.getElementsByClassName('conPager smaller right')[0].children[1].href; //获取下一个帖子的链接地址 | |
| if(iframe.src != next) { //判断是否抓取完成 |
This Rally track is used to test the relationship between bulk indexing rejections and the following parameters:
The track contains a number of challenges, each indexing into an index with a set number of shards using a increasing number of concurrent client connections and two different bulk sizes.
| #!/usr/bin/env bash | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| #=================================================================# | |
| # System Required: CentOS 6,7, Debian, Ubuntu # | |
| # Description: One click Install ShadowsocksR Server # | |
| # Author: Teddysun <[email protected]> # | |
| # Thanks: @breakwa11 <https://twitter.com/breakwa11> # | |
| # Intro: https://shadowsocks.be/9.html # | |
| #=================================================================# |
| # Delete the example index | |
| curl -XDELETE "http://localhost:9200/sortable-version-test?pretty=true" | |
| # Create a new example index | |
| curl -X POST "http://localhost:9200/sortable-version-test?pretty=true" | |
| # Set the mapping. Assumes version.groovy resides in $ES_HOME/config/scripts | |
| curl -XPOST "http://localhost:9200/sortable-version-test/version/_mapping?pretty=true" -d' | |
| { | |
| "version": { |
| #!/usr/bin/env python | |
| # | |
| # Copyright 2012 Patrick Hetu <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |