Skip to content

Instantly share code, notes, and snippets.

View GHR-Arash's full-sized avatar
😍
Hi There

ARASH GHOREYSHI GHR-Arash

😍
Hi There
  • IRAN TEHRAN
View GitHub Profile
@GHR-Arash
GHR-Arash / elasticsearch-cheatsheet.txt
Created September 15, 2018 04:05 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
@GHR-Arash
GHR-Arash / AuthHttp.ts
Created August 26, 2017 06:24 — forked from chandermani/AuthHttp.ts
Angular 2, Http service wrapper to pass authorization token with each request.
import {Injectable, EventEmitter} from 'angular2/core';
import {Http, Headers, RequestOptions, RequestOptionsArgs, Response, RequestMethod, Request, Connection, ConnectionBackend} from 'angular2/http';
import * as Rx from 'rxjs';
export enum Action { QueryStart, QueryStop };
@Injectable()
export class AuthHttp {
process: EventEmitter<any> = new EventEmitter<any>();
@GHR-Arash
GHR-Arash / AuthHttp.ts
Created August 26, 2017 06:24 — forked from chandermani/AuthHttp.ts
Angular 2, Http service wrapper to pass authorization token with each request.
import {Injectable, EventEmitter} from 'angular2/core';
import {Http, Headers, RequestOptions, RequestOptionsArgs, Response, RequestMethod, Request, Connection, ConnectionBackend} from 'angular2/http';
import * as Rx from 'rxjs';
export enum Action { QueryStart, QueryStop };
@Injectable()
export class AuthHttp {
process: EventEmitter<any> = new EventEmitter<any>();