Skip to content

Instantly share code, notes, and snippets.

View suzmas's full-sized avatar

Suzan Sucro suzmas

View GitHub Profile
# 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
@suzmas
suzmas / vim.md
Last active April 26, 2017 01:36
Vim commands I use / find helpful while learning

Vim for Me

  • Set cwd to current directory:

    :cd %:p:h

  • Set args to all the files in cwd

    :args **/*

@suzmas
suzmas / bash-cmds.md
Last active August 18, 2019 17:53
Fun Unix commands

Unix commands that make me happy

  • Links
  • find commands
    • 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 modification time: find ./foo -mtime -X or +X where X = number of days. So, +1 would find files modified more than one day ago.

@suzmas
suzmas / .inputrc
Last active June 8, 2017 17:54
Inputrc customization to aid in my laziness
# 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
@suzmas
suzmas / README.md
Created January 3, 2020 15:35 — 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...

@suzmas
suzmas / meteor-scripts.js
Created January 30, 2020 19:20
logging stuff for meteor
////////////////////////////////////////////////////////////////
////////////////// -- Log DDP messages -- /////////////////////
///////////////////////////////////////////////////////////////
if (Meteor.isClient) {
// log sent messages
var _send = Meteor.connection._send;
Meteor.connection._send = function (obj) {
console.log("send", obj);
_send.call(this, obj);