Skip to content

Instantly share code, notes, and snippets.

name: "{{FRAMEWORK_NAME}}"
web-url: "http://sidecar-0-companion.{{FRAMEWORK_NAME}}.mesos:{{SIDECAR_PORT}}"
pods:
mongodb:
count: {{MONGODB_COUNT}}
uris:
- "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-{{MONGODB_VERSION}}.tgz"
- "{{MONGODB_KEY_FILE_URL}}"
- "https://gist.github.com/shirkevich/fec2896c7f5bdbe635b53d5963f6c43f/raw/7f8cf3d035eae9b525f388c84c0d5727853688be/svc-limit.yml"
resource-sets:
I0213 10:30:42.896019 64664 fetcher.cpp:498] Fetcher Info: {"cache_directory":"\/tmp\/mesos\/fetch\/slaves\/b181b224-1dad-4dac-aef2-8f6aadca7405-S3\/root","items":[{"action":"RETRIEVE_FROM_CACHE","cache_filename":"c1-jre-8u112-_x64.tar.gz","uri":{"cache":true,"executable":false,"extract":true,"value":"https:\/\/downloads.mesosphere.com\/java\/jre-8u112-linux-x64.tar.gz"}},{"action":"DOWNLOAD_AND_CACHE","cache_filename":"c13-mongodb-si_eduler.zip","uri":{"cache":true,"executable":false,"extract":true,"value":"https:\/\/khufu-dcos-universe.s3.amazonaws.com\/frameworks\/mongodb-sidecar\/20170213-122717-vifsEHSiibOKWiGW\/mongodb-sidecar-scheduler.zip"}},{"action":"RETRIEVE_FROM_CACHE","cache_filename":"c3-libmesos-b_2-2.tar.gz","uri":{"cache":true,"executable":false,"extract":true,"value":"http:\/\/downloads.mesosphere.com\/libmesos-bundle\/libmesos-bundle-1.8.7-1.0.2-2.tar.gz"}}],"sandbox_directory":"\/var\/lib\/mesos\/slave\/slaves\/b181b224-1dad-4dac-aef2-8f6aadca7405-S3\/frameworks\/b181b224-1dad-4dac-aef2-8f

Keybase proof

I hereby claim:

  • I am shirkevich on github.
  • I am shirkevich (https://keybase.io/shirkevich) on keybase.
  • I have a public key whose fingerprint is 971A 288F FB24 5264 8172 06B1 4EDA D24A AFE8 1937

To claim this, I am signing this object:

@shirkevich
shirkevich / Gemfile
Last active August 29, 2015 14:15 — forked from sheerun/certgen.rb
source "https://rubygems.org"
gem "certificate_authority"
@shirkevich
shirkevich / mongoid_with_sequel.rb
Created June 7, 2011 07:01
mongoid shouldn't extend core Object class (using mongoid with sequel)
require 'rubygems'
require "sequel"
require "active_support"
# * mongoid (2.0.2)
# * sequel (3.24.1)
module Mongoid #:nodoc:
module Extensions #:nodoc:
module Object #:nodoc:
@shirkevich
shirkevich / plugins.rb
Created June 6, 2011 23:53
ruby 1.9.2 Sequel uninitialized constant ClassMethods
require 'rubygems'
require 'sequel'
class Object
module ClassMethods
end
end
module Sequel
module Plugins
require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require(:default)
AMQP.start do |session|
channel = AMQP::Channel.new
exchange = channel.topic('test', :durable => true)
end
@shirkevich
shirkevich / ru_RU.rb
Created February 22, 2010 17:45
russian localization for typo
# localization Voloshin Ruslan <rebisall@gmail.com>
Localization.define('ru_RU') do |l|
# General
l.store "your blog", "Твой блог"
l.store "Typo admin", "Typo админ"
l.store "Publish", "Публиковать"
l.store "Manage", "Управлять"
l.store "Feedback", "Обратная связь"
l.store "Design", "Дизайн"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<title>Example1</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
@shirkevich
shirkevich / gist:70116
Created February 25, 2009 10:23 — forked from dkubb/gist:62293
NOTE: run all the commands prefixed with "$" from the command-line.
0) Make sure sake is installed:
$ sudo gem install sake
1) Make sure you've applied this patch to sake:
http://err.lighthouseapp.com/attachments/50325/sake_rake_0.8.2.patch