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
## old fashined option number one | |
#turkey vm | |
apt-get install socat | |
socat TCP-LISTEN:8080,fork,reuseaddr TCP:twitter.com:443 | |
#russian vm | |
echo "turkey_vm_ip twitter.com" >> /etc/hosts | |
curl -D - https://twitter.com:8080 | |
## option number two |
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
class Diff | |
def initialize(_old,_new) | |
@old = _old | |
@new = _new | |
end | |
def results | |
@global_index = {} | |
@old.each_with_index{|v,i| @global_index[v] = i} | |
@new.each_with_index{|v,i| @global_index[v] = i} |
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
index: | |
number_of_shards: 3 | |
number_of_replicas: 0 # not for production | |
analysis: | |
char_filter: | |
ru: | |
type: mapping | |
mappings: ['Ё=>Е', 'ё=>е'] | |
analyzer: | |
ru_RU: |