As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
#!/bin/sh | |
MONGODB_SHELL='mongo' | |
DUMP_UTILITY='mongodump' | |
#SET the bd name which one you want to backup | |
DB_NAME='' | |
#SET server path where you want to save the file | |
CLOUD_PATH='' |
#!/bin/sh | |
# Add MongoDB Package | |
echo "Add MongoDB Package" | |
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo "MongoDB Package completed" | |
# Update System | |
echo "System Update" |
app.get('/', function(req, res){ | |
var ua = req.header('user-agent'); | |
if(/mobile/i.test(ua)) { | |
res.render('mobile.html'); | |
} else { | |
res.render('desktop.html'); | |
} | |
}); |
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |