- Limpar diretório de dependências:
rm -rf node_modules
- Atualizar repositório:
git pull
- Instalar dependências:
npm install
- Executar mongo como admin:
sudo mongod
- Executar app:
nodemon app.js
ounode app.js
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 | |
$file = 'myfile.php'; | |
$last_modified_time = filemtime($file); | |
$etag = md5_file($file); | |
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT"); | |
header("Etag: $etag"); | |
if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time || | |
trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) { |
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
<filesMatch "\.(html|htm|js|css)$"> | |
FileETag None | |
<ifModule mod_headers.c> | |
Header unset ETag | |
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" | |
</ifModule> | |
</filesMatch> |
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
function getTime(date) { | |
return $q(function(resolve, reject) { | |
resolve(date.getTime()); | |
}); | |
} | |
var promise = getTime(new Date()); | |
promise.then(function(data) { | |
//Code here |
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
[ng\:cloak], [ng-cloak], .ng-cloak { | |
display: none !important; | |
} |
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
display brief interface - Switch 3COM | |
display interface brief - Switch HP | |
display link-aggregation verbose | |
display mac-address |
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
System Description | |
3Com Switch 4200G 48-Port Software Version 3Com OS V3.02.00s56 | |
1 Minute CPU Average | |
.1.3.6.1.4.1.43.45.1.6.1.1.1.3.65536 | |
5 Minute CPU Average | |
.1.3.6.1.4.1.43.45.1.6.1.1.1.4.65536 | |
Free Memory |