{
"galaxy.meteor.com": {
"env": {
"ENV": "staging",
"MONGO_URL": "mongodb://okgrow-staging-meteor:fakePassword1234@okgrow-staging-shard-00-00-fxnj9.mongodb.net:27017,okgrow-staging-shard-00-01-fxnj9.mongodb.net:27017,okgrow-staging-shard-00-02-fxnj9.mongodb.net:27017/admin?ssl=true&replicaSet=okgrow-staging-shard-0",
"MONGO_OPLOG_URL": "mongodb://okgrow-staging-oplog:fakePassword5678@okgrow-staging-shard-00-00-fxnj9.mongodb.net:27017,okgrow-staging-shard-00-01-fxnj9.mongodb.net:27017,okgrow-staging-shard-00-02-fxnj9.mongodb.net:27017/local?authSource=admin&ssl=true&replicaSet=okgrow-staging-shard-0",
}
}
}
This file contains hidden or 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
Show hidden characters
| { | |
| "env": { | |
| "meteor:coverage": { | |
| "plugins": ["istanbul"] | |
| } | |
| } | |
| } |
This file contains hidden or 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
| #cleanup first | |
| curl -XDELETE localhost:9200/test/ | |
| echo | |
| #create index | |
| curl -XPUT localhost:9200/test | |
| echo | |
| #create parent type | |
| curl -XPUT localhost:9200/test/test_parent |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # usage: wget -N https://gist.githubusercontent.com/moshest/e4c73efc8d6a35971f6e/raw/setup-mongodb.sh && sh ./setup-mongodb.sh | |
| set -e | |
| # configs | |
| read -e -p "Replica set name: " -i "rep1" replSet | |
| read -e -p "Hostname: " -i $(curl -s http://169.254.169.254/latest/meta-data/public-hostname) hostname | |
| read -e -p "Swap size: " -i "8G" swapsize |
This file contains hidden or 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 | |
| set -e | |
| install_mongo() { | |
| sudo yum -y update | |
| echo "[MongoDB] | |
| name=MongoDB Repository | |
| baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
| gpgcheck=0 |
This file contains hidden or 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
| # Copyright 2018 SwiftComply.com | |
| commands: | |
| 01_node_install: | |
| test: "[ `node --version` != 'v8.10.0' ]" | |
| command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -" | |
| 02_yarn_repo: | |
| test: "[ ! -f /etc/yum.repos.d/yarn.repo ]" | |
| command: "curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo" | |
| 03_yarn_install: | |
| test: "[ ! -x /usr/bin/yarn ]" |
This file contains hidden or 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
| <?php | |
| /** | |
| * Gera a paginação dos itens de um array ou collection. | |
| * | |
| * @param array|Collection $items | |
| * @param int $perPage | |
| * @param int $page | |
| * @param array $options | |
| * | |
| * @return LengthAwarePaginator |
connect to meteor instance:
meteor mongo <name>.meteor.com
remove login tokens:
db.users.update({}, {$set: {"services.resume.loginTokens": []}}, {multi: true})
logout:
exit
more info: https://www.meteor.com/blog/2014/04/09/heartbleed
This file contains hidden or 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
| {"lastUpload":"2018-05-03T11:33:27.621Z","extensionVersion":"v2.9.2"} |