Skip to content

Instantly share code, notes, and snippets.

Avatar

Gaurav Arora gauravarora

View GitHub Profile
@gauravarora
gauravarora / docker-compose.yml
Last active Aug 22, 2020
kong + keycloak + konga
View docker-compose.yml
version: '3.4'
networks:
kong-net:
keycloak-net:
volumes:
kong-datastore:
driver: local
keycloak-datastore:
@gauravarora
gauravarora / docker-compose.yml
Created Aug 21, 2020
Konga fixed docker compose
View docker-compose.yml
version: "3"
networks:
kong-net:
driver: bridge
volumes:
postgres_data:
driver: local
View kubectl cheats
Get all images in cluster
kubectl get pods --all-namespaces -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c
Nodes with type
kubectl get nodes -L beta.kubernetes.io/instance-type -L failure-domain.beta.kubernetes.io/zone
View keybase.md

Keybase proof

I hereby claim:

  • I am gauravarora on github.
  • I am gaurav (https://keybase.io/gaurav) on keybase.
  • I have a public key ASC4FQT_vnC2om_rdy8VzDExSonChPXuRq5d200KH8a57wo

To claim this, I am signing this object:

@gauravarora
gauravarora / influxdb-grafana-howto.sh
Last active Aug 29, 2015 — forked from otoolep/influxdb-grafana-howto.sh
Shell script to download, and configure, InfluxDB, nginx, and Grafana
View influxdb-grafana-howto.sh
#!/bin/bash
# Check out the blog post at:
#
# http://www.philipotoole.com/influxdb-and-grafana-howto
#
# for full details on how to use this script.
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname
INFLUXDB_DATABASE=test1
@gauravarora
gauravarora / gist:c9186401055ad379657f
Created Jun 20, 2014
elasticsearch cluster settings
View gist:c9186401055ad379657f
{"transient":{
"indices.recovery.concurrent_streams": 15,
"indices.recovery.max_bytes_per_sec": "500mb",
"cluster.routing.allocation.balance.shard": "0.65f",
"cluster.routing.allocation.balance.index": "0.55f",
"cluster.routing.allocation.balance.primary": "0.2f",
"cluster.routing.allocation.cluster_concurrent_rebalance": "10"
}
}
View gist:32b03a28d6af903923a0
time curl -XPOST "http://localhost/es/logstash-2014.04.01-v2/_search?pretty" -d'
{
"size": 0,
"aggregations": {
"the_name": {
"terms": {
"field": "clientip",
"order": {
"rating_avg": "desc"
}
View gist:211c7059b350dc6ee9f1
{
"java": {
"jdk_version": "7",
"oracle": {
"accept_oracle_download_terms": "true"
},
"accept_license_agreement": "true",
"install_flavor": "oracle"
},
"elasticsearch": {
View oracle2mysql.sed
s/NUMBER(22,0)/BIGINT/
s/NUMBER(9,0)/INT/
s/NUMBER(8,0)/INT/
s/NUMBER(6,0)/MEDIUMINT/
s/NUMBER(5,0)/SMALLINT/
s/NUMBER(3,0)/TINYINT/
s/NUMBER(2,0)/TINYINT/
s/NUMBER(1,0)/BIT/
s/NUMBER(16,2)/DECIMAL(16,2)/
s/NUMBER(11,2)/DECIMAL(11,2)/
View gist:121e714bf871c8237804
{
"template": "logstash-*",
"settings":
{
"index.refresh_interval": "30s"
},
"mappings":
{
"_default_":