-
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
'.source.js': | |
'import': | |
'prefix': 'import' | |
'body': "import { ${1:title} } from '${2:package-name}';" | |
'import-meteor': | |
'prefix': 'import-meteor' | |
'body': "import { Meteor } from 'meteor/meteor';" | |
'import-templating': | |
'prefix': 'import-templating' | |
'body': "import { Template } from 'meteor/templating';" |
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])). |
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
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
-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
{ | |
"_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
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", |
Usually when new version of Node.js comes out and you update it by just installing new and removing old one, all of your global NPM packages are gone. Here is how to update to new version of Node and reinstall packages:
$ nvm install NEW_VERSION --reinstall-packages-from=OLD_VERSION