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 / install.sh
Created August 4, 2017 21:43
RaspberryPi install nodejs custom version
wget https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-armv6l.tar.gz
sudo mv node-v4.5.0-linux-armv6l.tar.gz /opt
cd /opt
sudo tar -xzf node-v4.5.0-linux-armv6l.tar.gz
sudo mv node-v4.5.0-linux-armv6l nodejs
sudo rm node-v4.5.0-linux-armv6l.tar.gz
sudo ln -s /opt/nodejs/bin/node /usr/bin/node
sudo ln -s /opt/nodejs/bin/npm /usr/bin/npm
@mignev
mignev / vault-tests.md
Created September 17, 2016 22:54 — forked from come-maiz/testers.md
Vault snap testing
@mignev
mignev / coworker.md
Created March 14, 2016 10:25
Co worker

Който се чувства комфортно да говори на езици като:

  • JavaScript (Client /React, Angular/ & Server side (Node))
  • Go (Docker, Kubernetes, Microservices)

Обича да си цапа ръцете със сървъри и се забавлява на тази картинка: https://scontent-frt3-1.xx.fbcdn.net/…/12605387_12291098337…

Да ми пише на лично или на мейл: m.ignev@cloudstrap.io / p.ivanov@cloudstrap.io

Ние ... по въпросите ще го познаем :)))

@mignev
mignev / frontend_job_ad.md
Last active December 2, 2015 17:21
Front-end Gagu Job Ad

Front-end Gagu

MediaHub си търси frontend човек за офиса си в София. Фокусът на компанията е разработка и интеграция на решения за разпространение и визуализиране на видео съдържание.

Много важно!

От особенна важност за позицията е добро познаване по: JavaScript, HTML5 и CSS3.

Ще се радваме ако:

В допълнение познаването на следните продукти и технологии е предимство:

  • Nodejs
  • MongoDB
@mignev
mignev / maintenance.html
Created May 7, 2015 16:28
StartApp.bg Custom Maintenance page
<!DOCTYPE html>
<html>
<head>
<title>Maintenance in progress. Please try again in few minutes</title>
<link href='//fonts.googleapis.com/css?family=Ubuntu:300' rel='stylesheet' type='text/css'>
<style type="text/css" />
body {color: #666; text-align: center; font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif; sans-serif; margin:0; width: 800px; margin: auto; font-size: 14px; }
h1 { font-size: 56px; line-height: 100px; font-weight: normal; color: #456; }
h2 { font-size: 24px; color: #666; line-height: 1.5em; }
h3 { color: #456; font-size: 20px; font-weight: normal; line-height: 28px; }
@mignev
mignev / client.rb
Last active December 31, 2015 07:09
Fast rails runner
require 'socket'
# thanks to @mitio
UNIXSocket.open('/tmp/fast.pid') do |fastrails|
fastrails.write ARGV.join(' ')
puts fastrails.read
end
=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
#