$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
| # delete index (will print an error if 'my_index' doesn't exist, you can safely ignore it) | |
| curl -XDELETE 'http://localhost:9200/my_index' | |
| # create index with its settings | |
| curl -XPOST 'http://localhost:9200/my_index' -d '{ | |
| "index.analysis.analyzer.default.type":"custom", | |
| "index.analysis.analyzer.default.tokenizer":"standard", | |
| "index.analysis.analyzer.default.filter.0":"lowercase", | |
| "index.analysis.analyzer.default.filter.1":"asciifolding" | |
| }' |
| # Delete the possibly existing autocomplete test index | |
| curl -X DELETE localhost:9200/autocomplete_test | |
| # Put the config of the autocomplete index | |
| curl -X PUT localhost:9200/autocomplete_test -d ' | |
| { | |
| "settings" : { | |
| "index" : { | |
| "analysis" : { | |
| "analyzer" : { |
| [ | |
| { | |
| "id":"5", | |
| "name":"Barot Bellingham", | |
| "shortname":"Barot_Bellingham", | |
| "reknown":"Royal Academy of Painting and Sculpture", | |
| "bio":"Barot has just finished" | |
| }, | |
| { | |
| "id":"6", |
##Google Interview Questions: Product Marketing Manager
##Google Interview Questions: Product Marketing Manager
| <html> | |
| <head> | |
| <title>jsonp test</title> | |
| <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
| <script type="text/javascript"> | |
| $(function(){ | |
| $('#select_link').click(function(e){ | |
| e.preventDefault(); | |
| console.log('select_link clicked'); | |
| // Module dependencies | |
| var express = require('express'), | |
| mysql = require('mysql'); | |
| // Application initialization | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
| // https://github.com/felixge/node-mysql | |
| // npm install mysql | |
| var mysql = require('mysql'); | |
| // http://nodejs.org/docs/v0.6.5/api/fs.html#fs.writeFile | |
| var fs = require('fs'); | |
| var client = mysql.createClient({ | |
| user: 'root', | |
| password: 'mysqlpassword' |