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
# Run with: rake environment elasticsearch:reindex | |
# Begins by creating the index using tire:import command. This will create the "official" index name, e.g. "person" each time. | |
# Then we rename it to, e.g. "person20121001" and alias "person" to it. | |
namespace :elasticsearch do | |
desc "re-index elasticsearch" | |
task :reindex => :environment do | |
klasses = [Place, Person, Caption] |
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
curl -k -L -o elasticsearch.tar.gz http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
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
[[312, 1], [2, 1], [132, 1], [216, 1], [137, 1], [311, 1], [309, 1], [308, 1], [110, 1], [306, 1], [305, 1], [109, 1], [298, 1], [107, 1], [206, 1], [138, 1], [293, 1], [103, 1], [203, 1], [140, 1], [101, 1], [97, 1], [197, 1], [275, 1], [141, 1], [193, 1], [167, 1], [261, 1], [260, 1], [259, 1], [94, 1], [217, 1], [144, 1], [85, 1], [145, 1], [218, 1], [147, 1], [38, 1], [80, 1], [150, 1], [214, 1], [74, 1], [252, 1], [154, 1], [71, 1], [69, 1], [67, 1], [155, 1], [245, 1], [236, 1], [63, 1], [160, 1], [223, 1], [165, 1], [262, 1], [166, 2], [54, 2], [134, 2], [168, 2], [52, 2], [62, 2], [113, 2], [209, 2], [111, 2], [212, 2], [175, 2], [45, 2], [44, 2], [73, 2], [176, 2], [307, 2], [76, 2], [303, 2], [204, 2], [199, 2], [282, 2], [280, 2], [191, 2], [33, 2], [126, 3], [189, 3], [4, 3], [92, 3], [36, 3], [161, 3], [95, 3], [75, 3], [220, 3], [290, 3], [255, 3], [148, 3], [182, 3], [100, 4], [207, 4], [37, 4], [267, 4], [3, 4], [142, 4], [31, 4], [169, 4], [114, 5], [64, 5], [172, 5], [127, 5], [34, 5], [210, |
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
G_MODIFIER_TYPES = { | |
"+# Life gained for each enemy hit by your Attacks" => [:bow, :claw, :dagger, :one_hand_axe, :one_hand_mace, :one_hand_sword, :sceptre, :staff, :thrusting_one_hand_sword, :two_hand_axe, :two_hand_mace, :two_hand_sword, :wand, :glove, :amulet, :ring], | |
"+# Life gained when you Kill an enemy"=> [:bow, :claw, :dagger, :one_hand_axe, :one_hand_mace, :one_hand_sword, :sceptre, :staff, :thrusting_one_hand_sword, :two_hand_axe, :two_hand_mace, :two_hand_sword, :wand, :boot, :glove, :amulet, :quiver, :ring], | |
"+# Mana Gained when you Kill an enemy" => [:bow, :claw, :dagger, :one_hand_axe, :one_hand_mace, :one_hand_sword, :sceptre, :staff, :thrusting_one_hand_sword, :two_hand_axe, :two_hand_mace, :two_hand_sword, :wand, :glove, :amulet, :quiver, :ring], | |
"+# to Dexterity" => [:bow, :claw, :dagger, :one_hand_axe, :one_hand_sword, :thrusting_one_hand_sword, :two_hand_axe, :two_hand_sword, :body_armour, :boot, :glove, :helmet, :shield, :amulet, :quiver, :ring], | |
"+# to Level of Bow Gems in this |
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
[REQUEST FAILED] curl -X GET 'http://localhost:9200/poe_shields/_search?from=0&size=15&pretty' -d '{"query":{"bool":{"must":[{"query_string":{"query":"_exists_:scrawled_at"}},{"term":{"verified":{"term":true}}},{"term":{"league_id":{"term":3}}},{"range":{"required_level":{"gte":-100000,"lte":40}}},{"nested":{"query":{"bool":{"must":[{"term":{"mod_id":{"term":27}}}],"should":[{"range":{"value":{"gte":-100000,"lte":100000}}},{"query_string":{"query":"_missing_:value"}}],"minimum_number_should_match":1}},"path":"stats"}}]}},"sort":[{"scrawled_at":"desc"}],"facets":{"name":{"terms":{"field":"base_name","size":10,"all_terms":false}},"rarity":{"terms":{"field":"rarity_name","size":10,"all_terms":false}},"linked_sockets":{"terms":{"field":"linked_socket_count","size":10,"all_terms":false}},"type":{"terms":{"field":"type","size":10,"all_terms":false}},"league":{"terms":{"field":"league_name","size":10,"all_terms":false}},"category":{"terms":{"field":"category","size":10,"all_terms":false}}},"size":15,"from":0}' |
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
[REQUEST FAILED] curl -X GET 'http://localhost:9200/poe_shields/_search?from=0&size=15&pretty' -d '{ | |
"query":{ | |
"bool":{ | |
"must":[ | |
{ | |
"query_string":{ | |
"query":"_exists_:crawled_at" | |
} | |
}, | |
{ |
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
i was meant to be born a spoiled rich white girl in manhattan but something went wrong idk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
I want griz to DJ at my funeral | |