Skip to content

Instantly share code, notes, and snippets.

View goodhamgupta's full-sized avatar
💻

Shubham Gupta goodhamgupta

💻
View GitHub Profile
@nitinstp23
nitinstp23 / es_talk_notes.md
Last active September 29, 2017 06:19
Elasticsearch Introduction

Elasticsearch Introduction

What is Elasticsearch?

  • It is a highly scalable, open-source, full-text search engine.
  • It allows you to store and search data quickly and in near real time.
  • It is built on top of Apache Lucene.
  • It is schemaless.
  • It stores data in the form of JSON documents.
  • It has REST Apis for storing and searching data.
@thomasst
thomasst / migrate-redis.py
Created May 14, 2015 18:26
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@mblarsen
mblarsen / deploy.yaml
Last active July 24, 2022 13:27
Solution for `git clone` using Ansible for repos with private submodules with github deploy keys
# Problem:
#
# If you use git submodules linking two private github repos, you'll need to create a separate deploy key for each.
# Multiple keys are not supported by Ansible, nor does ansible (when running git module) resort to your `.ssh/config` file.
# This means your ansible playbook will hang in this case.
#
# You can however use the ansible git module to checkout your repo in multiple steps, like this:
#
- hosts: webserver
vars: