Skip to content

Instantly share code, notes, and snippets.

View venkatmarepalli's full-sized avatar

Venkatesh Marepalli venkatmarepalli

View GitHub Profile
𝐋𝐢𝐬𝐭 𝐨𝐟 𝐜𝐚𝐫𝐞𝐟𝐮𝐥𝐥𝐲 𝐜𝐮𝐫𝐚𝐭𝐞𝐝 65 𝐜𝐡𝐞𝐚𝐭𝐬𝐡𝐞𝐞𝐭𝐬 𝐲𝐨𝐮 𝐰𝐢𝐥𝐥 𝐞𝐯𝐞𝐫 𝐧𝐞𝐞𝐝 :-
1. Python : https://lnkd.in/grD8XUS6
2. Pandas : https://lnkd.in/g4yTJ7CP
3. NumPy : https://lnkd.in/gg9Uw-km
4. Matplotlib https://lnkd.in/gahrGicD
5. Seaborn https://lnkd.in/gcu4UKpw
6. Scikit-learn https://lnkd.in/gGfkNu5i
7. TensorFlow : https://lnkd.in/g3fw3uRV
8. Keras : https://lnkd.in/gfPTfbgg
@venkatmarepalli
venkatmarepalli / Docker_commands.sh
Created August 26, 2019 18:00
Docker Creation on RHEL 6.x or 7
# Configuring Sudo access to a user account refer
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/2/html/Getting_Started_Guide/ch02s03.html
#Create a user with SUDO Access as suggested in Red-Hat Docs ([Link][1] speaks well on this process). For instance I created an user as docker with group as docker.
groupadd docker
useradd -m -g docker docker
Add docker repository for installing latest copy of Docker for RHEL/Centos 6
yum update -y
@venkatmarepalli
venkatmarepalli / Docker_Commands.sh
Last active August 10, 2017 00:10
Useful Docker Commands
#Getting into Docker Container Bash
eb ssh
docker ps
docker exec -t -i <container-name> /bin/bash
#List of repositories from local Registry
curl http://localhost:5000/v2/_catalog
#One liner to stop / remove all of Docker containers:
docker stop $(docker ps -a -q)
@venkatmarepalli
venkatmarepalli / Useful_Shell_Commands.sh
Last active February 28, 2019 18:41
Handy Shell Commands
#How to determine the current shell I'm working on?
#Ref: https://stackoverflow.com/questions/3327013/how-to-determine-the-current-shell-im-working-on
echo $SHELL
echo $0
ps -ef | grep $$ | grep -v grep
#Find Linux Kernel version
uname -a
#Find Linux Version info
@venkatmarepalli
venkatmarepalli / git_commands.sh
Last active March 15, 2018 00:34
Common Useful GIT Commands
#Nice Tutorial
#http://rogerdudler.github.io/git-guide/
#View committed files those are not pushed yet
git diff --stat origin/master
#View list of files that are to be pushed
git diff --stat --cached origin/master
#Replace local changed files with gits version
@venkatmarepalli
venkatmarepalli / getTokens.sh
Last active June 22, 2017 05:56
Curl to retrieve refresh token and access tokens
#Initial url opening login page with below parameters
#Once this is logged in it will redirect to the redirect uri with code in query params.
https://login.microsoftonline.com/{tenent-Id}/oauth2/authorize?nonce=258db3ce0f&state=87da5fbdd4d2785fd52b2&redirect_uri=http://xyz.com/getauthcode.html&response_type=code&client_id=30a3a6f4-138b..&scope=openid+email+profile&access_type=offline
#To retrieve access token using Authorization code
#Token end point https://login.windows.net/{tenant_id}/oauth2/token also works
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d "code=AQABAAIAAABnfi&client_id=12456&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F" 'https://login.microsoftonline.com/common/oauth2/v2.0/token'
#The below Curl without client_secret works only for Native apps created on Azure AD. For Web App client_secret is mandatory.
@venkatmarepalli
venkatmarepalli / endpoints.txt
Created May 4, 2017 23:37
Microsoft Azure end points
https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration
authorization_endpoint:https://login.microsoftonline.com/common/oauth2/v2.0/authorize
token_endpoint:https://login.microsoftonline.com/common/oauth2/v2.0/token
jwks_uri:https://login.microsoftonline.com/common/discovery/v2.0/keys
end_session_endpoint:https://login.microsoftonline.com/common/oauth2/v2.0/logout"
"response_types_supported":["code","id_token","code id_token","id_token token"]
"scopes_supported":["openid","profile","email","offline_access"]
"issuer":"https://login.microsoftonline.com/{tenantid}/v2.0"