Skip to content

Instantly share code, notes, and snippets.

View eloyvega's full-sized avatar

Eloy Vega Castillo eloyvega

View GitHub Profile
@eloyvega
eloyvega / README.md
Created July 7, 2016 14:58 — 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...

@eloyvega
eloyvega / tmux-cheatsheet.markdown
Created November 3, 2016 19:00 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname