telnet ipReplica port: tenet 101.101.01.01 27017
ufw status
| agregação var = MyModel.aggregate (...); | |
| aggregation.options = {allowDiskUse: true}; | |
| aggregation.exec (function () {}); |
| db.getCollectionNames().forEach(function(collection) { | |
| indexes = db[collection].getIndexes(); | |
| print("Indexes for " + collection + ":"); | |
| printjson(indexes); | |
| }); |
| openssl genrsa -out server-key.pem 2048 | |
| openssl req -new -key server-key.pem -out server-csr.pem | |
| OR | |
| openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr | |
| and | |
| openssl x509 -req -in server-csr.pem -signkey server-key.pem -out server-cert.pem | |
| past in ssl provider: cat server-csr.pem |
| var options = { | |
| server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } }, | |
| replset: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } } | |
| }; | |
| mongoose.connect(secrets.db, null, options); |
| db.copyDatabase("oldDb","newDb","connection") | |
| use oldDb | |
| db.dropDatabase(); |
| // AppContext | |
| @Configuration | |
| @EnableAutoConfiguration | |
| @ComponentScan(basePackages={"ebanx?"}) | |
| public class AppContext { | |
| } | |
| // Application | |
| @SpringBootApplication | |
| public class Application { |
| // BaseEntity | |
| public abstract class BaseEntity<ID extends Serializable> | |
| extends AbstractPersistable<ID>{ | |
| private static final long serialVersionUID = 1L; | |
| @Override | |
| public String toString(){ | |
| return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); | |
| } |
Open ruby mine and on menu: tools => Create command line luncher =>
on bash run:
bundle exec mine .