pip3 install pipenv
pipenv shell
| from string import Template | |
| import time | |
| import pytest | |
| from google.oauth2 import service_account | |
| from googleapiclient.discovery import build | |
| from googleapiclient.errors import * | |
| from google.auth.exceptions import * | |
| import easygui | |
| import pandas as pd |
| gcloud auth | |
| gcloud auth activate-refresh-token | |
| gcloud auth activate-service-account | |
| gcloud auth git-helper | |
| gcloud auth list | |
| gcloud auth login | |
| gcloud auth print-access-token | |
| gcloud auth print-refresh-token | |
| gcloud auth revoke | |
| gcloud components |
$ curl https://sdk.cloud.google.com | bash
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
File "/home/pratos/google-cloud-sdk/lib/third_party/enum/__init__.py", line 364, in __getattr__
| sudo add-apt-repository ppa:webupd8team/sublime-text-3; | |
| sudo apt-get update; | |
| sudo apt-get install sublime-text-installer; | |
| sudo ln -s /usr/lib/sublime-text-3/sublime_text /usr/local/bin/sublime; |
#MongoDB - Mongo Shell
###Single Task You can run commands in MongoDB from the command prompt by feeding the command into the mongo shell using:
mongo server1/admin --eval "db.runCommand({logRotate:1})"
mongo localhost:30000/admin --eval "db.runCommand({logRotate:1})"
This example will rotate the log file without remaining in the mongo shell. Note: admin refers to the admin database. Executing the command returns: