server {
listen 80;
server_name <public_IP>;
location / {
proxy_pass http://localhost:18083;
proxy_http_version 1.1;
Show/hide hidden files on mac
$ defaults write com.apple.finder AppleShowAllFiles YES
or
-
Dump -
mongodump -h 127.0.0.1 --port 3001 -d meteor
-
Restore -
mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor
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
module.exports = [ | |
{ | |
"_id" : ObjectId("<obj_id>"), | |
"type" : "on_client_connected", | |
"date" : ISODate("2016-10-19T13:34:30.134Z"), | |
"client_id" : "C_1476884060951" | |
}, | |
{ | |
"_id" : ObjectId("<obj_id>"), | |
"type" : "on_client_disconnected", |
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
{ | |
"_id" : ObjectId("5806bf7f83152983d5000001"), | |
"type" : "on_session_created", | |
"date" : ISODate("2016-10-19T00:34:07.513Z"), | |
"client_id" : "C_1476837240716", | |
"username" : "admin" | |
} | |
{ | |
"_id" : ObjectId("5806bf7f83152983d5000002"), | |
"type" : "on_client_connected", |
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
-spec get_timestamp() -> integer(). | |
get_timestamp() -> | |
{Mega, Sec, Micro} = os:timestamp(), | |
(Mega*1000000 + Sec)*1000 + round(Micro/1000). | |
tuple_to_string(Req) -> | |
Timestamp = get_timestamp(), | |
{_,[_,Method,Path|Rest]} = Req, | |
Bucket = [Timestamp,{Method,Path}], | |
lists:flatten(io_lib:format("~p", [Bucket])). |
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
spanning-tree mode pvst | |
! | |
class-map type inspect match-all LAN-TO-WAN-CLASS | |
match access-group name LAN-TO-WAN | |
class-map type inspect match-all WAN-TO-LAN | |
match access-group name WAN-TO-LAN | |
class-map type inspect match-all WAN-TO-LAN-CLASS | |
match access-group name WAN-TO-LAN | |
class-map type inspect match-all LAN-TO-DMZ-CLASS | |
match access-group name LAN-TO-DMZ |
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
mongodump -h 127.0.0.1 --port 3001 -d meteor | |
mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor |
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
-spec get_timestamp() -> integer(). | |
get_timestamp() -> | |
{Mega, Sec, Micro} = os:timestamp(), | |
(Mega*1000000 + Sec)*1000 + round(Micro/1000). | |
tpl2str(Req) -> | |
Timestamp = get_timestamp(), | |
{_,[_,Method,Path|Rest]} = Req, | |
Bucket = [Timestamp,{Method,Path}], | |
lists:flatten(io_lib:format("~p", [Bucket])). |