View index.html
<div class="wrapper"> | |
<div class="details"> | |
<div class="wrap header"> | |
Create new Project | |
</div> | |
<div class="wrap"> | |
<div class="project-name"> | |
<label for="">Project Name</label> | |
<input type="text" /> | |
</div> |
View console.test.js
console.time('Operation1') | |
for (var i = 0; i < 1000000000; i++) { | |
} | |
console.timeEnd('Operation1') | |
/// following is outout | |
// $ node app.js | |
// Operation1: 507ms |
View openssh_info.sh
$ openssl version | |
OpenSSL 0.9.8zh 14 Jan 2016 | |
$ openssl dgst -h | |
unknown option '-h' | |
options are | |
-c to output the digest with separating colons | |
-d to output debug info | |
-hex output as hex dump | |
-binary output in binary form |
View index.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
ul { | |
box-shadow: 1px 1px 3px #555; | |
margin:50px auto; |
View mongod-log.file.sh
$> mongod --dbpath I:\Servers\data --port 27017 --logpath I:\Servers\logs\mongod.log | |
all output going to: I:\Servers\logs\mongod.log |
View config-file.sh
mongod -f I:\Servers\mongodb\config\mongodb.conf | |
or | |
mongod --config I:\Servers\mongodb\config\mongodb.conf |
View mongdb-install-service.sh
# note that following should go only in only one line | |
$> mongod -f "I:\Servers\mongodb\config\mongodb.conf" | |
--install --serviceName mdb27017 | |
--serviceDisplayName "MongoDB Server Instance 27017" | |
--serviceDescription "MongoDB Server Instance running on 27017" |
View mongdb-remove-service.sh
# note that following should go only in only one line | |
mongod -f "I:\Servers\mongodb\config\mongodb.conf" | |
--remove --serviceName mdb27017 | |
--serviceDisplayName "MongoDB Server Instance 27017" | |
--serviceDescription "MongoDB Server Instance running on 27017" |
View file-stat.js
fs=require('fs'); | |
fs.stat(path, function(err, stat){ | |
console.log(stat); | |
console.log(stat.isDirectory()); | |
console.log(stat.isFile()); | |
}) |
View file-exists.js
fs = require('fs'); | |
path = 'data/myfile.txt'; | |
fs.exists(path, function(exists){ | |
if(exists){ | |
console.log('yes file exists...'); | |
} else { | |
console.log('It doesnt exists'); | |
} | |
}) |
NewerOlder