Skip to content

Instantly share code, notes, and snippets.

View DheerajP's full-sized avatar

Dheeraj Palagiri DheerajP

View GitHub Profile
@DheerajP
DheerajP / Update Contentful entries with a tag.txt
Last active September 5, 2024 14:15
Update Contentful entries with a tag
const contentful = require("contentful-management");
const client = contentful.createClient({
accessToken: "<Replace with your access token>",
});
client
.getSpace("<Replace with your spaceID>")
.then((space) => space.getEnvironment("<Replace with Env ID>"))
.then((environment) =>
@DheerajP
DheerajP / Azure CLI commands
Last active October 28, 2021 09:47
Useful commands while working with AKS
#Switch between subscriptions
az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
#Set the context of your current AKS
az aks get-credentials -a --resource-group resourceGroupName --name aksName --overwrite-existing
#Set the context of your current Namespace in AKS
kubectl config set-context --current --namespace=nameofYourNameSpace
#Kill a pod