Skip to content

Instantly share code, notes, and snippets.

View abhiesa-tolexo's full-sized avatar

Abhishek Pandey abhiesa-tolexo

View GitHub Profile
@abhiesa-tolexo
abhiesa-tolexo / gist:1f35ea842bb171077b8f
Created December 4, 2015 12:11 — forked from alinpopa/gist:1281448
elasticsearch analyzer example - Test Queries
# Index
---------------------------------------------------------------------
curl -XPUT http://localhost:9200/pictures/ -d '
{
"settings": {
"analysis": {
"analyzer": {
"index_analyzer": {
"tokenizer": "standard",
@abhiesa-tolexo
abhiesa-tolexo / .gitconfig
Created December 5, 2015 13:32 — forked from alinpopa/.gitconfig
Git .gitconfig
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
curl -XDELETE localhost:9200/test-idx
echo
curl -XPUT localhost:9200/test-idx -d '{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"query_default": {
@abhiesa-tolexo
abhiesa-tolexo / README.md
Created February 26, 2016 20:18 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/