Skip to content

Instantly share code, notes, and snippets.

View mthipparthi's full-sized avatar

Mahesh Thipparthi mthipparthi

View GitHub Profile
brew install kubectl
kubectl get-contexts
kubectl --help
kubectl config --help
kubectl config get-contexts
kubectl get pods -n digicap-restricted
kubectl exec -it digicap-media-access-69fc5f6bf8-r652g -n digicap-restricted
kubectl exec -it digicap-media-access-69fc5f6bf8-r652g bash -n digicap-restricted
kubectl cluster-info
kubectl get services
{
// Controls the font size in pixels.
"editor.fontSize": 18,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 130,
"editor.formatOnSave": true,
"editor.renderIndentGuides": false,
"files.autoSave": "afterDelay",
"java.home": "/Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home",
"gradle.useCommand": "gradle",
python -m pip install pipx
pipx inject visidata pandas
pipx
pipx install visidata
pipx install poetry
pipx install awscli
pipx ensurepath
pipx completions
pipx install aws-google-auth
pipx list
brew install pyenv
pyenv install 3.8
pyenv install 3.8.0
pyenv install 3.7
pyenv install 3.7.5
pyenv install 3..6
pyenv install 3.6
pyenv install 3.6.9
pyenv install 2.7
pyenv install 2.7.17
brew install pyenv
pyenv install 3.8
pyenv install 3.8.0
pyenv install 3.7
pyenv install 3.7.5
pyenv install 3..6
pyenv install 3.6
pyenv install 3.6.9
pyenv install 2.7
pyenv install 2.7.17
brew install python3.6
brew install python@3.6
brew install python@3
brew install python@3.6
brew update python@2
brew upgrade python@2
brew install md5sum
brew install md5sha1sum
brew install docker
brew install docker-compose
brew install python3.6
brew install python@3.6
brew install python@3
brew install python@3.6
brew update python@2
brew upgrade python@2
brew install md5sum
brew install md5sha1sum
brew install docker
brew install docker-compose
from flask import Flask
from flask_apispec import use_kwargs, marshal_with
from marshmallow import fields, Schema
from flask import make_response
from flask_apispec.views import MethodResource
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
@mthipparthi
mthipparthi / git_commands.txt
Last active May 2, 2017 06:51
git commands
# Intitial Setup
git config --global user.name "Mahesh Thipparthi"
git config --global user.email "mahesh.thipparthi@gmail.com"
## remote adding origin
git remote add origin https://github.com/mthipparthi/syd_pds_ato_data.git
## Initialize a repository in an existing directory
git init
## Get a copy of an existing repository
git clone URL
@mthipparthi
mthipparthi / gist:7dab48b4ac71610cce86
Created December 4, 2015 06:30
Pycthon challenges
chal 1 :
chal 2 :
s='g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.'
a=[ord(x)+2 if x.isalpha() else ord(x) for x in s]
s="".join([chr(x) for x in a])