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
| db.getCollection('detail_copy').find({"table_content.3" :/.*-.*/}) |
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
| jupyter notebook --no-browser --port=2222 |
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
| db.getCollection('job_detail').find({"data.title":/UBS/}) |
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
| db.getCollection('cvs_500').aggregate([ | |
| { $project : { | |
| _id : 0 , | |
| candidates : 1 , | |
| }}, | |
| { $unwind:{path:"$candidates"}}, | |
| { $replaceRoot: { newRoot: "$candidates" } }, | |
| {$out: "candidates_flat"} | |
| ]) |
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
| find({"table_cells.0":{$exists:true}}).forEach((obj)=>{ | |
| db.getCollection("combined").insert(obj) | |
| }) |
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
| docker ps -q | xargs docker stop ; docker system prune -a | |
| - - - - - - - - - - - - - - - - - - | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) | |
| docker rmi $(docker images -q) |
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
| # docker compose already running | |
| docker-compose up -d --no-deps --build <service_name> |
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
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) |
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
| docker-compose rm --all && | |
| docker-compose pull && | |
| docker-compose build --no-cache && | |
| docker-compose up -d --force-recreate |
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
| mongorestore -d qyer2 -c user_keywords_locations Desktop/FIT-China/backup_2017-12-13/qyer/clustering_user_source.bson | |
| remote: | |
| mongorestore --host dig-cvcube-dbo.res.el.eee.intern -d studyprogrammes -c combined dump/scraping2/combined.bson |