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
#!/bin/bash | |
# Reset the index. | |
curl -X DELETE "localhost:9200/test/?pretty=true" | |
curl -X PUT "localhost:9200/test/?pretty=true" | |
# Create the parent mapping. | |
echo | |
curl -X PUT "localhost:9200/test/user/_mapping?pretty=true" -d '{ | |
"user": { |
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
if defined? Rails | |
# Customize the IRB prompt. | |
short_env = case Rails.env | |
when 'development' | |
'dev' | |
when 'production' | |
'prod' | |
else | |
Rails.env |
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
Chart | |
http://www.cpubenchmark.net/high_end_cpus.html | |
http://products.amd.com/en-us/DesktopCPUResult.aspx | |
http://ark.intel.com/ | |
http://ark.intel.com/compare/80814,80809,80808,80806,80807 | |
http://processors.findthebest.com/d/n/AMD |
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 String | |
def multiline_split(max_line_length) | |
self | |
end | |
end | |
puts "foo\nbar\nbaz" == "foo bar baz".multiline_split(3) | |
puts "foo bar\nbaz" == "foo bar baz".multiline_split(9) |
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
This is the first small text file for testing purposes. |
OlderNewer