Skip to content

Instantly share code, notes, and snippets.

View ytimocin's full-sized avatar

Yetkin Timocin ytimocin

  • Microsoft
  • Los Angeles, CA
View GitHub Profile
1. **Install Dapr**
	a. Update necessary Helm charts and permissions
	b. Add Dapr details to **pkg/cli/helm/cluster.go**
	c. Add a DaprClient in pkg/cli/helm package.
	d. Dapr type should be added to the client.Client scheme (pkg/cli/kubernetes/kubernetes.go).
	e. Dapr should be added to the Runtime Client constructor in pkg/kubeutil/client.go.
	f. Add tests.
	g. Update Docs:
		i. troubleshooting-installation.md.
2. Workflow updates
@ytimocin
ytimocin / enableWebsockets.md
Last active June 3, 2024 18:11
Enabling websockets in routes

The Problem

When you create a Radius Gateway resource with a route that uses WebSocket as its protocol, the connection to this route terminates after a certain period. You need to refresh the connection to establish another stable connection between the browser and the server.

The issue that made us aware of this limitation: radius-project/radius#7590.

What is a WebSocket?

WebSocket is a protocol that provides a way to exchange date between browser and server via a persistent connection. The data can be passed in both directions as “packets”, without breaking the connection and the need of additional HTTP-requests.

@ytimocin
ytimocin / ghu2023tr.md
Created November 16, 2023 00:04
GitHub Universe 2023 - Trip Report

The future state of APIs by Ankit Sobti (CTO of Postman)

1. Brief introduction about Postman. They needed to build a UI on top of the API at Yahoo. Started as a side project and they gave the initial product to friends.
2. "How do I test my APIs?" is the question they wanted to answer.
3. Both Internal vs External APIs of your organization should be very well organized.
4. Tips and practices:
	a. APIs are products so we should think about who the consumers are.
	b. What is the first time user experience and what is the continuous user experience?
5. Every industry in the world is now becoming API-aware.
6. The ability for somebody who is technical to speak the business language is the most important in the way to build robust APIs.
"""create account table
Revision ID: 9b1d3dcf21f9
Revises:
Create Date: 2020-02-04 14:46:12.628680
"""
import sqlalchemy as sa
from alembic import op
@ytimocin
ytimocin / flask-postgres-server.docker-compose.yml
Created February 14, 2020 23:03
The docker-compose.yml file for the flaks-postgres-server project
version: '3.6'
services:
api:
build: .
depends_on:
- db
environment:
STAGE: test
SQLALCHEMY_DATABASE_URI: postgresql+psycopg2://test:test@db/test