Show/hide hidden files on mac
$ defaults write com.apple.finder AppleShowAllFiles YES
or
$ defaults write com.apple.finder AppleShowAllFiles YES
or
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
Dump - mongodump -h 127.0.0.1 --port 3001 -d meteor
Restore - mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor
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", |
{ | |
"_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", |
-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])). |
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 |
mongodump -h 127.0.0.1 --port 3001 -d meteor | |
mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor |
-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])). |