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
use admin | |
db.createUser( | |
{ | |
user: "admin", | |
pwd: "alum123#", | |
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] | |
} | |
) | |
db.createUser( |
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
var mongoose = require('mongoose'); | |
var counter = mongoose.Schema({ | |
type: { type: String, index: { unique: true }}, | |
seq: Number | |
}); | |
// create the model for users and expose it to our app | |
module.exports = mongoose.model('counter', counter); |
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
app.get('/questions/intTags' , function (req ,res) { | |
console.log(req.query.data) | |
var data = [ | |
{ "text": "Tag1" }, | |
{ "text": "Tag2" }, | |
{ "text": "Tag3" }, | |
{ "text": "Tag4" }, | |
{ "text": "Tag5" }, | |
{ "text": "Tag6" }, | |
{ "text": "Tag7" }, |
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
echo "PUT YOUR MAIL BODY HERE" | mailx -s "SUBJECT" -S smtp=smtp://yoursmtpserver.com -S smtp-auth=login -S smtp-auth-user=YOUR_USERNAME -S smtp-auth-password=YOUR_PASSWORD -S from="Sender Name <[email protected]>" [email protected] |
OlderNewer