Skip to content

Instantly share code, notes, and snippets.

View azer-optim's full-sized avatar
🎯
Focusing

Azer azer-optim

🎯
Focusing
View GitHub Profile
@azer-optim
azer-optim / readme.md
Created September 3, 2025 08:27
Delete deployment of Backoffice Production Env

Get All Deployments of a namespace

kubectl get deployments -n optimbtp-backoffice-production

Delete all the deployments

kubectl delete deployments --all -n optimbtp-backoffice-production

Get all pods of a namespace

kubectl get pods -n optimbtp-backoffice-production

Deploy using helm

@azer-optim
azer-optim / readme.md
Created September 3, 2025 07:15
Check commands of App deployment in optimbtp-saas-recette Namespace

Check commands of App deployment in optimbtp-saas-recette Namespace

kubectl logs -n optimbtp-saas-recette api-deployment-79fb8876b-mvtt9

@azer-optim
azer-optim / steps.md
Last active September 3, 2025 07:16
Guideline for importing specific dumped Mysql tables to production databases

Connect to MYSQL

mysql -h optim-factory-mysql-prd.mysql.database.azure.com -P 3306 -u admin_optim -p

Restore specific dumped file tables to backoffice production mysql databases

mysql -h optim-factory-mysql-prd.mysql.database.azure.com -P 3306 -u admin_optim -p backoffice

@azer-optim
azer-optim / gist:12907b9b8878c17935e6bcaa36b11bf5
Created January 20, 2025 08:56
Error handling - fiche parametre - update and delete errors
useEffect(() => {
const handleError = (errorObject: ApiError | undefined) => {
if (errorObject?.status === 409) {
toast.current?.show({
severity: "error",
summary: errorObject?.data?.libelle,
});
}
};