Skip to content

Instantly share code, notes, and snippets.

View punkyoon's full-sized avatar
๐ŸŒŠ

punkyoon

๐ŸŒŠ
View GitHub Profile
@vavdoshka
vavdoshka / README.md
Last active October 3, 2025 00:24
ArgoCD and ArgoWorkflows SSO config with AWS Cognito

ArgoCD and ArgoWorkflows SSO config with AWS Cognito

So you have fantastic ArgoCD or mind-boggling ArgoWorkflows (this guide covers both), and if you want to secure the Authentication with AWS Cognito, let's dive right in.

I found many different sources unveiling some pieces of the required configuration but no resources where one can see the whole picture. I hope this guide will be one of such places. This guide will mean no DEX usage, just rely on Argo's built-in OpenID Connect flow.

Table of contents

@zlaval
zlaval / ReactorVsCoroutine.kt
Created January 14, 2021 22:31
Reactor Coroutine
data class Vehicle(
val name: String
)
data class Car(
val id: Long? = null,
val producer: String
)
data class DetailedCar(
@Andrew-Chen-Wang
Andrew-Chen-Wang / DjangoRedisPubSubSingleton.py
Created April 27, 2020 01:28
Redis Handling using three connections max for Django Websocket Applications using Pub/Sub
"""
Import RedisSingleton and create the object by doing:
redis_singleton = await RedisSingleton()
That way, you've not only created a new object in memory but also
executed the await in the magic method. This is helpful when you have
wayyy too many Django's and connections become overloaded.
There should now only be three connection for:
PUBSCRIBE x2 and PUBLISH

์›๋ณธ : https://gist.github.com/rondy/af1dee1d28c02e9a225ae55da2674a6f

์ฝ๊ธฐ์ „์— : ์ €๋Š” ์—ฌ๊ธฐ์— ์ œ์‹œ๋œ ๋‚ด์šฉ(์—๋“œ๋ชฌ๋“œ ๋ผ์šฐ์˜ ์ฑ…์˜ ๊ฐœ์š”)์„ ์ œ์ž‘ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์ธํ„ฐ๋„ท ์–ด๋”˜๊ฐ€์—์„œ ๋ณต์‚ฌํ•˜์—ฌ ๋ถ™์—ฌ ๋„ฃ์—ˆ์ง€๋งŒ ์›๋ณธ ์†Œ์Šค๊ฐ€ ์ •ํ™•ํžˆ ๋ฌด์—‡์ธ์ง€ ๊ธฐ์–ต๋‚˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ์ €์ž์˜ ์ด๋ฆ„์„ ์ฐพ์„ ์ˆ˜ ์—†์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ์ ์ ˆํ•œ ํฌ๋ ˆ๋”ง์„ ์ค„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

์ดํŽ™ํ‹ฐ๋ธŒ ์—”์ง€๋‹ˆ์–ด

์ดํŽ™ํ‹ฐ๋ธŒ ์—”์ง€๋‹ˆ์–ด๋ž€?

@Andrew-Chen-Wang
Andrew-Chen-Wang / multi-chat-native-django-3.0.md
Last active January 23, 2021 13:57
Instructions for Multi-Chat One Websocket connection native Django 3.0, no Django channels

That's right, one websocket connection per user because I'm cheap like that (and it's actually easier for mobile devs when it comes to needing info about several other things plus only handling ONE connection).

In wake of growing expectations, I've just created a Django 3.0 multi-chat option, as well, using just caching and the asgi.py. No Django channels. Anyways, I've implemented multi-chat using ONE WebSocket connection per user. Why? One main reason is that my iOS app's ContainerViewController which is like Android's ViewPager and Android's One-activity-multiple-fragment architecture makes using one web socket connection optimal. 1. I needed to communicate several other things between the server and the user by using custom headers and 2. AWS costs a lot of money, especially with API Gateway or simply using EC2 with data transferring On-Demand... The following assumes you've set up native Django 3.0 like so to work with websockets: https://dev.to/jaydenwindle/adding-websockets-to-your-django-app-with-no-

@gragland
gragland / use-async.jsx
Last active February 17, 2024 16:42
React Hook recipe from https://usehooks.com
import React, { useState, useEffect, useCallback } from 'react';
// Usage
function App() {
const { execute, status, value, error } = useAsync(myFunction, false);
return (
<div>
{status === 'idle' && <div>Start your journey by clicking a button</div>}
{status === 'success' && <div>{value}</div>}
@tauren
tauren / webrtc.js
Created February 17, 2017 20:01
Using RxJS for WebRTC icecandidate handling via WebSocket signaling server
// Create WebRTC peer and setup event handlers
let peer = new RTCPeerConnection(iceConfig)
// Subject for the websocket signalling server
let socketSubject = Observable.webSocket({
// deserialize each binary message received
resultSelector: e => deserialize(e.data)
})
// Filter for only icecandidate messages
.filter(msg => msg && msg.header && msg.header.event === 'icecandidate' && msg.body && msg.body.candidate)
@xnuk
xnuk / hyeong.md
Last active September 14, 2025 02:12
๋‚œํ•ดํ•œ ํ˜€์—‰.... ์–ธ์–ด

๋‚œํ•ดํ•œ ํ˜€์—‰... ์–ธ์–ด v0.4.5

  • โ€ฆ(U+2026), โ‹ฏ(U+22EF), โ‹ฎ(U+22EE)๋Š” ๋ชจ๋‘ .(U+002E)๊ฐ€ 3๋ฒˆ ์—ฐ์†์œผ๋กœ ๋‚˜์—ด๋œ ๊ฒƒ๊ณผ ๊ฐ™์€ ๊ฒƒ์œผ๋กœ ๋ด…๋‹ˆ๋‹ค.
  • "ํ•œ๊ธ€ ์Œ์ ˆ ๋ฌธ์ž"๋Š” ๊ฐ€(U+AC00) ์ด์ƒ ํžฃ(U+D7A3) ์ดํ•˜์˜ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž๋“ค์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

์Šคํƒ

  • ์Šคํƒ์˜ ๋ชจ๋“  ์›์†Œ๋Š” ์œ ๋ฆฌ์ˆ˜ ๋˜๋Š” NaN์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ถ„๋ชจ๊ฐ€ 1์ธ ์œ ๋ฆฌ์ˆ˜๋ฅผ ํŽธ์˜์ƒ ์ •์ˆ˜๋ผ๊ณ  ์นญํ•ฉ๋‹ˆ๋‹ค.
  • NaN์€ ํŠน์ˆ˜ํ•œ ์ˆซ์ž์ฒ˜๋Ÿผ ์ทจ๊ธ‰๋ฉ๋‹ˆ๋‹ค. ์–ด๋– ํ•œ ์—ฐ์‚ฐ์„ ํ•˜๋”๋ผ๋„ ๊ทธ ์—ฐ์‚ฐ์— NaN์ด ์žˆ์„ ๊ฒฝ์šฐ ๊ทธ ์—ฐ์‚ฐ์˜ ๊ฐ’์€ NaN์ด ๋ฉ๋‹ˆ๋‹ค.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@jamtur01
jamtur01 / ladder.md
Last active August 20, 2025 19:17
Kickstarter Engineering Ladder