Skip to content

Instantly share code, notes, and snippets.

View antoniom13's full-sized avatar

Antonio antoniom13

View GitHub Profile
@antoniom13
antoniom13 / mongo-filter-notes.md
Last active January 2, 2020 16:30
Mongo notes on functions

$cmp - Compare 2 expressions. Returns -1 if value1 < value2, 0 if equal, 1 if value1 > value2

{ $cmp: [ <expression1>, <expression2> ] }

$indexOfArray -> Returns the occurrence of a specified value in an array

{ $indexOfArray: [ <array expression>, <search expression>, <start>, <end> ] }
103.4.96.0/22
129.134.0.0/16
129.134.0.0/17
157.240.0.0/16
157.240.0.0/17
157.240.0.0/24
157.240.1.0/24
157.240.10.0/24
157.240.11.0/24
157.240.12.0/24
@antoniom13
antoniom13 / Dockerfile
Created December 9, 2016 21:24 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
" Ctrl-W t Ctrl-W K -> Moves vsplit to hsplit
" Ctrl-W t Ctrl-W H -> Moves hsplit to vsplit
" Ctrl-W [s/v] take same buffer and split vertically / horizontally
execute pathogen#infect()
syntax on
filetype plugin indent on