git remote add origin git@yourremote.git
| db.collection.find().limit(1).skip(_rand()*db.collection.count()); |
| PROMPT='%{$fg_bold[red]%}☠ λ%{$fg_bold[black]%}%p %{$fg[black]%}%~% %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]" |
| let q = { | |
| miles: 40, //mile pointOf earth radius | |
| earth: 3963.2, //earth radius | |
| lat: -25, | |
| long: -49 | |
| }; | |
| db.collection.find({$geoWithin: {$centerSphere: [[q.lat, q.long], q.miles/q.earth]}}); |
| db.collection | |
| .aggregate( | |
| [ | |
| {$match:{$text:{$search: "STRING"}, {/*wEVER*/}}}, | |
| {$lookup:{from: 'otherCollectionJoin', localField: 'p', foreignField: '_id', as: 'otherCollectionJoin'}}, | |
| {$unwind:"otherCollectionJoin"}, | |
| { | |
| $group:{ | |
| "_id":"$_id" | |
| , type: {$addToSet: "otherField"} |
| db.collection.find({}).snapshot().forEach( function (obj) { | |
| obj.prop1 = obj.prop2; | |
| db.collection.save(obj); | |
| }); | |
| db.collection.find({}).snapshot().forEach( function (obj) { | |
| obj.prop1 = parseInt(obj.prop1); | |
| db.collection.save(obj); | |
| }); |
| export LANGUAGE=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| locale-gen en_US.UTF-8 | |
| dpkg-reconfigure locales |