-
Set cwd to current directory:
:cd %:p:h
-
Set
args
to all the files in cwd:args **/*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Essential JavaScript Links # Essential JavaScript Links | |
-A curated list by Eric Elliott and friends. Suggest links in the [gist comments](https://gist.github.com/ericelliott/d576f72441fc1b27dace#comment-1365676). +I use the Essential JavaScript Links list almost daily. I add to it when I find more links that I think every JS developer should know about. I want to make it easier to scan, and easier for users to suggest new links. We're going to turn it into a proper website, so... | |
-[Help us turn this into a proper website!](https://github.com/ericelliott/essential-javascript-links/issues) +## The List has a New Home: | |
-This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments. +[The Essential JavaScrip |
-
- Find file by filename:
find ./foo -name foo.txt
- Find file by filename starts with / contains (case insensitive):
find . -iname foo*
find . -iname *foo*
etc. - Find dir:
find ./foo -type d -name bar
- Find file by filename:
-
Find file by modification time:
find ./foo -mtime -X
or+X
where X = number of days. So, +1 would find files modified more than one day ago.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use up/down arrow keys to flip through history for specific command, or beginning of specific command | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
# tab through completion matches if ambiguous | |
set show-all-if-ambiguous on | |
# case insensitive tab completion | |
set completion-ignore-case on |
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////// | |
// -- Tracking stats for methods and subscriptions -- // | |
/////////////////////////////////////////////////////////////// | |
/** | |
* methodStats[methodName] = { | |
* calls: Number, // how many times we called it | |
* bytes: Number // total bytes received for the method’s result | |
* } | |
* | |
* subStats[subName] = { |