Skip to content

Instantly share code, notes, and snippets.

@Jagdeep1
Jagdeep1 / es_oom_log.txt
Created May 7, 2012 13:39
ES oom log and settings
Query for which I am getting oom
{
"query" : {
"match_all" : { }
},
"size" : 0,
"facets" : {
"tag" : {
"terms" : {
"field" : "nouns",
@Jagdeep1
Jagdeep1 / d3lib.md
Created October 4, 2013 19:39 — forked from widged/d3lib.md

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

This file has been truncated, but you can view the full file.
[{"_id":"568682d2f6aa291d609a2e81","__v":0},{"_id":"56868995f6aa291d609a2e83","__v":0},{"_id":"568689f8f6aa291d609a2e84","__v":0},{"_id":"5686950af6aa291d609a2e85","__v":0},{"_id":"56875a1cf6aa291d609a2e86","__v":0},{"_id":"56875a38f6aa291d609a2e87","__v":0},{"_id":"5687aeb1e0423bda66a1f40b","timestamp":"1451732577617","userId":111111,"uuid":"ThisIsASampleDeviceUUID","__v":0,"location":{"latitude":18.5782194,"longitude":73.6865057}},{"_id":"5687af13e0423bda66a1f40c","timestamp":"1451732707625","userId":111111,"uuid":"ThisIsASampleDeviceUUID","__v":0,"location":{"latitude":18.578239699999997,"longitude":73.6864478}},{"_id":"5687b040e0423bda66a1f40d","timestamp":"1451732991989","userId":111111,"uuid":"ThisIsASampleDeviceUUID","__v":0,"location":{"latitude":18.5782488,"longitude":73.6865346}},{"_id":"5687b283e0423bda66a1f40e","timestamp":"1451733578310","userId":111111,"uuid":"ThisIsASampleDeviceUUID","__v":0,"location":{"latitude":18.5782489,"longitude":73.68646}},{"_id":"5687b86ce0423bda66a1f40f","timestamp":"
{"_id":"568ab9d4e0423bda66a215c9","timestamp":"1451921645185","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5800117,"longitude":73.686077}},{"_id":"568ab9d4e0423bda66a215ca","timestamp":"1451921645325","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5800117,"longitude":73.686077}},{"_id":"568ab9d4e0423bda66a215cb","timestamp":"1451921646203","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5800195,"longitude":73.6861026}},{"_id":"568ab9d4e0423bda66a215cc","timestamp":"1451921646187","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5800195,"longitude":73.6861026}},{"_id":"568ab9d4e0423bda66a215cd","timestamp":"1451921646857","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5800195,"longitude":73.6861026}},{"_id":"568ab9d4e0423bda66a215ce","timestamp":"1451921647186","uuid":"523858d3da29276","userId":111111,"__v":0,"location":{"latitude":18.5801545,"longitude":73.6859666}},{"_id"
[
{
"_id": "568bf2709826b5c7244c5591",
"timestamp": "1452009584288",
"uuid": "523858d3da29276",
"userId": 111111,
"driveId": 1452009518857,
"__v": 0,
"location": {
"latitude": 18.5805232,
@Jagdeep1
Jagdeep1 / istio.main.yaml
Last active May 14, 2020 09:53
Istio multi cluster setup - main cluster configuration
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: main-istiocontrolplane
spec:
# Using Default profile for this example. You can select differnt profile for your use case
# https://istio.io/docs/setup/additional-setup/config-profiles/
profile: default
values:
@Jagdeep1
Jagdeep1 / istio.remote.yaml
Last active May 12, 2020 17:05
Istio multi cluster setup - remote cluster configuration
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: remote-istiocontrolplane
spec:
# Using Default profile for this example. You can select differnt profile for your use case
# https://istio.io/docs/setup/additional-setup/config-profiles/
profile: default
values:
@Jagdeep1
Jagdeep1 / cluster-aware-gateway.yaml
Created May 11, 2020 18:33
Cluster aware gateway
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: cluster-aware-gateway
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- port:
@Jagdeep1
Jagdeep1 / azure-kv-provider.yaml
Last active June 6, 2020 14:07
Provider class for secret store
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
metadata:
name: azure-kv-provider
spec:
provider: azure
parameters:
usePodIdentity: "false" # We will not use pod identity for this example. We will use SP
keyvaultName: "db-keys" # This is the name of KeyVault resource that we created in previous step
cloudName: "AzurePublicCloud"
@Jagdeep1
Jagdeep1 / sample-app.yaml
Created June 6, 2020 15:52
Sample app with secret store volume mount
kind: Pod
apiVersion: v1
metadata:
name: nginx-secrets-store
spec:
containers:
- image: nginx
name: nginx
volumeMounts:
- name: secrets-store-inline