Skip to content

Instantly share code, notes, and snippets.

View mignev's full-sized avatar

Marian Ignev mignev

View GitHub Profile
@mignev
mignev / golang_job_queue.md
Created July 14, 2018 17:56 — forked from harlow/golang_job_queue.md
Job queues in Golang
@mignev
mignev / README.md
Created December 11, 2017 19:14 — forked from rantav/README.md
Find slow queries in mongo DB

A few show tricks to find slow queries in mongodb

Enable profiling

First, you have to enable profiling

> db.setProfilingLevel(1)

Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...

@mignev
mignev / vault-tests.md
Created September 17, 2016 22:54 — forked from come-maiz/testers.md
Vault snap testing
=begin
Jekyll tag to include Markdown text from _includes directory preprocessing with Liquid.
Usage:
{% markdown <filename> %}
=end
module Jekyll
class MarkdownTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text.strip
@mignev
mignev / build
Created November 25, 2013 15:10 — forked from sanjmen/build
#!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
#
# MEMCACHED SERVER
#
@mignev
mignev / _usage
Created November 25, 2013 14:17 — forked from subosito/_usage
curl https://raw.github.com/gist/3342482/57d1f618104185aa89044f934c4f86cb74e11553/rbenv-openshift.sh | bash