Skip to content

Instantly share code, notes, and snippets.

View elfen's full-sized avatar
⛑️
34%

Matthieu elfen

⛑️
34%
View GitHub Profile
@elfen
elfen / mongo.md
Last active June 22, 2018 13:17
Mongo

MONGO Tips

  • Find documents with size array > 1
db.collection.find({$where: "this.field.length > 1" })

or

db.collection.find({field: {$size: 0}})
@elfen
elfen / config.yml
Created February 21, 2016 13:02
Test
referent: "https://gist.githubusercontent.com/alexcesaro/c9c47c638252e21bd82c/raw/bd031237a56ae6691145b4df5617c385dffe930d/list.txt"
port: 8080
files:
file1: "https://gist.githubusercontent.com/alexcesaro/4ebfa5a9548d053dddb2/raw/abb8525774b63f342e5173d1af89e47a7a39cd2d/file1.txt"
file2: "https://gist.githubusercontent.com/alexcesaro/249cde1332f9b2979140/raw/951e43186f14f9c386918d75d715ee49390ebc54/file2.txt"
file3: "https://gist.githubusercontent.com/alexcesaro/f99d72a1d1a1f140b27f/raw/e506ed86336ea8561027d9f8cd4007d1f691d835/file3.txt"
file4: "https://gist.githubusercontent.com/alexcesaro/77c12bfd58a0d1156d77/raw/e40a381a4bfade72c8fe85e97d83736a48f091e6/file4.txt"