Skip to content

Instantly share code, notes, and snippets.

View kitwalker12's full-sized avatar

Kunwar Aditya Raghuwanshi kitwalker12

View GitHub Profile
@kitwalker12
kitwalker12 / migrate-redis.py
Created March 4, 2017 00:11 — forked from thomasst/migrate-redis.py
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.
@kitwalker12
kitwalker12 / deviseCheck.js
Last active January 26, 2016 18:30 — forked from CodingFu/deviseCheck.js
Simple devise user login check in node.js
var bcrypt = require('bcrypt')
function checkUser(encrypted_password, password) {
bcrypt.compare(password, encrypted_password, function(err, res) {
console.log(err)
console.log(res) //true or false
};
@kitwalker12
kitwalker12 / deis.yaml
Last active August 29, 2015 14:25 — forked from paulczar/deis.yaml
Heat Template for installing DEIS
heat_template_version: 2013-05-23
description: Deploy a CoreOS cluster that tracks the Stable Channel
parameters:
count:
description: Number of CoreOS machines to deploy
type: number
default: 3
constraints:
# Capybara
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')