sdfsadf
This file contains 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
function getGoals() { | |
var p = parseInt((Math.random()*100),10), | |
r = 0, | |
g = parseInt((Math.random()*10),10); | |
if(p<=25) { | |
r = 0; | |
} else if(p<=40) { | |
r = 1; | |
} else if(p<=50) { |
This file contains 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
## MongoDump | |
Normal db dump | |
```bash | |
$ mongodump -db <dbname> --out /home/data/backup-<dbname> | |
``` | |
[Mongo Dump Reference](http://docs.mongodb.org/manual/reference/program/mongodump/#bin.mongodump) |
This file contains 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
#!/bin/bash | |
# Author: Cristian Cortez <cortez.cristian@gmail.com> | |
# Dependencies: cpulimiter | |
# | |
# Usage: | |
# $ sh meteor-cpu-limiter.sh | |
# Problem the process is taking a lot of resources | |
# coworkers machines get temperature and their fans makes noice |
Primer paso ir a google maps y crear un recorrido:
Copiar cuidadosamente la URL que se genera y pegarla en https://mapstogpx.com/
Descargamos un archivo.gpx
grep -lir "custome" app/migrations/201712* app/migrations/20171207120858.js app/migrations/20171222212151.js app/migrations/20171227151229.js
Get the info
const _ = require('lodash');
const fs = require('fs');
const agent = require('superagent');
const readJson = (path, cb) => {
fs.readFile(require.resolve(path), (err, data) => {
if (err)
OlderNewer