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
input { | |
tcp { | |
port => 5228 | |
codec => json_lines | |
} | |
} | |
output { | |
stdout { | |
codec => json_lines | |
} |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
namespace Triptitude.Biz.Services | |
{ | |
public class LuceneService | |
{ | |
public void IndexDestinations() | |
{ | |
var directoryInfo = new DirectoryInfo(LuceneDestinationsIndexPath); | |
var directory = FSDirectory.Open(directoryInfo); | |
Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_29); |
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
sudo aptitude install ttf-inconsolata |
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
sudo apt-get install curl git | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
Add to end of ~/.bashrc: | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
rvm notes (install "MRI" dependencies) | |
rvm install ruby-1.9.2 |