Skip to content

Instantly share code, notes, and snippets.

View rohitjangid's full-sized avatar

Rohit Jangid rohitjangid

View GitHub Profile
@rohitjangid
rohitjangid / elasticsearch17.rb
Created June 25, 2018 10:25
Installing Elastic Search 1.7 via homebrew
# in the terminal run brew install elasticsearch1.7.rb
class Elasticsearch17 < Formula
desc "Distributed search & analytics engine"
homepage "https://www.elastic.co/products/elasticsearch"
url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.6.tar.gz"
sha256 "78affc30353730ec245dad1f17de242a4ad12cf808eaa87dd878e1ca10ed77df"
revision 1
bottle :unneeded
Sidekiq::ScheduleSet.new.each do |job|
job.klass.constantize.perform_in(job.score, *job.args)
job.delete
end
{
"payload": {
"order_id": "12345678",
"payable_amount": 180,
"delivery_options": [
{
"invoice_key": "dbr",
"text": "Get your order in 50 mins at 0 rs extra",
"meta_data": {
"invoice_key": "dbr"