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
<html> | |
<head> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
document.write ("Today's date is " + moment().format("MMMM Do, YYYY h:mm a")); | |
</script> | |
</body> | |
</html> |
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
-- the MD5 hashes must match -- | |
openssl rsa -noout -modulus -in server.key | openssl md5 | |
openssl x509 -noout -modulus -in server.crt | openssl md5 |
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
#!/usr/bin/awk -f | |
BEGIN { | |
start = strftime("%s"); | |
print ""; | |
print "HTTP Requests Report"; | |
printf "start - %s\n", strftime("%a, %d %b %Y %I:%M:%S %p %Z"); | |
} | |
{ | |
match($10, /http:\/\/([^\/]+)/, arr); |
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'), | |
db = mongoose.connection.db, | |
GridStore = mongoose.mongo.GridStore, | |
stringifyObject = require('stringify-object'), | |
debug = require('debug')('myApp:MongoDB-GridFS'); | |
var collectionRoot = "TestArchive"; | |
var defaultQuery = { | |
"metadata.author": "Joel A. Bair", | |
"filename": "Summer Vacation.MOV" |
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
awk 'BEGIN { t = 0; c = 0 } { if($10 ~ /[[:digit:]]/) { t = t + $10; c++; } } END { print t / c}' /var/log/httpd/access_log |