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
| #!/bin/bash | |
| cd ~/backups | |
| folder=$(date +%Y%m%d) | |
| mkdir $folder && cd $folder | |
| mongodump -d sharurl | |
| tar -cvf dump.tar.gz ./dump | |
| rm -rf ./dump |
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
| String jsonStr = "{ \"debug_info\" : [], \"html_attributions\" : [], \"results\" : [ { \"geometry\" : { \"location\" : { \"lat\" : 12.9774180, \"lng\" : 77.71423799999999 } }, \"icon\" : \"http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\", \"id\" : \"742446507e37ea90df8389717e4835fe659183ed\", \"name\" : \"The Oriental Pavilion\", \"reference\" : \"CoQBdAAAAO8vSS9emj1nHgkl6zfX2RBC2HqMJEUPMFHH3HkCxwNy4Sa8Y9CynZo7sozZV5CPEDMvvg5GMFQBPxAdPX0oDMzOJhvqDq_wr2eWIlFKV7fB2Inm1GWj0hCMOsLy3zD8RVAMN74JIsHyR-xQWulDRwsxxQ-bhbmBzCYFfxTKd-I1EhDBAkzm4xIWEEIdmWriBsgyGhStZUB2SzvEb2j6nuuzjsMxHHzNzg\", \"types\" : [ \"restaurant\", \"food\", \"establishment\" ], \"vicinity\" : \"134-136, Fortune Select Trinity, ITPL Main Road, EPIP Area, Whitefield, Bangalore\" }, { \"geometry\" : { \"location\" : { \"la |
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
| mkdir ~/android | |
| mtp-detect | |
| mtpfs ~/android | |
| #to unmount | |
| fusermount -u ~/android |
NewerOlder