Skip to content

Instantly share code, notes, and snippets.

@zioproto
zioproto / ossh-alias.sh
Last active January 26, 2024 15:01
ssh and scp without saving and ignoring fingerprints
alias oscp='scp -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no"'
alias ossh='ssh -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no"'
@zioproto
zioproto / echoserver.yaml
Created March 13, 2023 16:43
Try to disable all envoy logs in Istio
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
spec:
replicas: 1
selector:
matchLabels:
run: echoserver
@zioproto
zioproto / bookinfo-gateway-azure.yaml
Last active April 14, 2023 05:54
Istio Bookinfo Gateway that works on Microsoft Azure
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: bookinfo-gateway
namespace: istio-system
annotations:
service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /productpage
# TODO test:
# service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /healthz/ready
@zioproto
zioproto / chatbot.py
Last active September 1, 2024 07:06
Streamlit chatbot powered by Azure OpenAI
"""
MIT License
Copyright (c) 2023 Saverio Proto
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is