ops + it ops aws s3 presignedurl AWS S3 & Pre-signed URL 사용 후 발생한 문제들 (feat. CORS)이미지를 업로드하거나 삭제하는 행위는 해당 서비스에 권한이 있는 사람만 할 수 있다. 이를 위해 서버에서 Pre-signed Url을 받아와 AWS S3에 접근하도록 만들었다. 이런 구조가 되면서 몇 가지 문제가 발생했는데 다음과 같다. 사용자가 이미지를 제출하면 Client(React)는 서버에게 Pre-signed URL을 받아와 AWS S3에 바로… wono | discuss | tweet + it ops aws s3 presignedurl Pre-Signed URL과 Signed URL로 S3 안전하게 사용하기👀 들어가며 wono | discuss | tweet + it ops db dbeaver erd Two ways to use ERD in DBeaverAn Entity Relationship (ER) Diagram is a type of flowchart that illustrates how entities relate to each other within a system. In terms of a database wono | discuss | tweet + it ops db dbeaver Rearrange columns in a simpler way · Issue #19042 · dbeaver/dbeaverIs your feature request related to a problem? Please describe. Its really hard to re-arrange the columns from the result set by drag and drop one by one or I have write the SQL according to the column arrange I required. Describe the sol... wono | discuss | tweet + it ops db kysely cte kysely/site/docs/recipes/0010-extending-kysely.md at a43b270cb6c88208d1d3f79b958e774deebe63f2 · kysely-org/kyselyA type-safe typescript SQL query builder. Contribute to kysely-org/kysely development by creating an account on GitHub. wono | discuss | tweet + it ops db kysely cte vaylaopas/src/server/db/db.ts at 3a6c28047e5d23c5196344a6beb5c44c5f51c38f · arttuka/vaylaopasContribute to arttuka/vaylaopas development by creating an account on GitHub. wono | discuss | tweet + it ops db kysely How to write "SELECT 1 FROM tablename" - KyselyI want to create subquery for exists but don't know type select(1)...? should I use val or sql.lit or other way...? Thanks in advance https://kyse.link/?p=s&i=rF7gNapHXGQFdbmhVHJx wono | discuss | tweet + it ops db kysely Merge temp table as source table · Issue #959 · kysely-org/kyselyIs there a way to use temp table as the source table in merge statement something like this? await db.mergeInto('mainTable').using('tempData', 'mainTable.itemCode', 'tempData.itemCode').whenMatched()...... SQL Statement MERGE INTO MainTa... wono | discuss | tweet + it ops db kysely merge JSON utilities for `selectNoFrom` · Issue #1294 · kysely-org/kyselyDiscussed in https://discord.com/channels/890118421587578920/1315878442281209907/1315878442281209907 Currently, all the json utilities expect a column. While it is possible to use these utilities via CTEs: const exampleJson = { foo: { ba... wono | discuss | tweet + it ops db merge MERGE 문 사용법 (DUAL, UPDATE와 INSERT를 한번에)MERGE 문을 사용하면 변경할 테이블에 데이터가 존재하는지 체크하고, UPDATE, DELETE, INSERT를 한 번에 작업이 가능하다. MERGE 문을 사용하지 않을 경우 해당 조건으로 테이블을 SELECT 한 후 IF 조건을 사용하여 UPDATE나 INSERT로 분기하는 로직을 작성해야 하는 번거로움이 있다. MERGE 문의 경우 단일(한개의) 테이블에 UPDATE 또는 INSERT를 하는 경우 많이 사용하지만, 두개의 테이블을 비교하거나 서브 쿼리의 결과에 따라서 UPDATE, INSERT 작업이 가능하다. MSSQL MERGE 문 단일 테이블 사용법 (DUAL) 오라클에서는 DUAL이라는 dummy 테이블을 USING 절에 사용하면 단일 테이블 작업이 간단하지만, MSSQL에서는 DUAL 테이.. wono | discuss | tweet + it ops db postgresql merge PostgreSQL 15にMERGE文UPSERTがやってくる | DevelopersIOPostgreSQL 15がMERGE文を使ったUPSERTに対応します wono | discuss | tweet + it ops db postgresql merge Postgresql 로 Upsert 하기Postgres 9.5(2016년 1월 7일 이후 출시) 이후 가능한 문법입니다.존재하지 않는 경우 삽입, 존재하는 경우 Nothing존재하지 않는 경우 삽입, 존재하는 경우 Update삽입이 되었으면, id 반환삽입이 된 경우 삽입된 id값을 반환한다.Serial, wono | discuss | tweet + it ops node s3 image AWS S3 도입 (feat. Javascript v3 마이그레이션)버킷 생성부터 Node.js S3 코드 작성까지. AWS S3 SDK for Javascript v3 (Node.js) wono | discuss | tweet + it ops aws ami doc 16. Instance AMI 생성(실습)이번장에서 AMI 즉 인스턴스 이미지를 생성해 본다. 1) EC2의 인스턴스 메뉴에서 기존에 만들어 놓은 **Lucky-Instance**를 선택한다. 그리고 **작업 > 이미… wono | discuss | tweet + it ops aws backup how_to_calculate_cost_of_aws_backups wono | discuss | tweet + it ops nextjs cors websocket 문제는 언젠가 해결된다. NextJS 12버전에 nginx reverse proxy 적용 결과 나온 에러다. 로그 상으로 momentjs 모듈에서 발생한 에러로 보이지만, create-next-app으로 새로운 웹을 만들어도 같은 문제가 발생했다. 해결방법을 찾으려고 각종 국내 및 해외 개 wono | discuss | tweet + it ops key 암호화 알고리즘 비교: RSA vs ED25519서버 인프라를 세팅하기 위해 EC2 인스턴스를 만들다가 생긴 궁금증.RSA (Rivest-Shamir-Adleman):RSA의 보안은 큰 소수의 곱을 소인수분해하는 것이 어렵다는 사실에 기인하여 등장.키 길이에 크게 의존하는 보안성. 2048비트 이상이 권장되며, 40 wono | discuss | tweet + it ops github deploykeys [Git/Github] Repository의 Deploy key 사용하기 (ssh-keygen, 공개키, 비밀키)왜 사용하는가? 로컬이 아닌 공용 서버, 새로 구축한 서버에서 private repository를 가져올 때마다 인증을 해야 하는 번거로움이 있습니다. 이럴 때 repository에 public key(공개키)를 등록하고 클론할 서버에 private key(개인키)를 들고 있게 하면 간편하게 repository에 접근할 수 있습니다. 아래 순서대로 진행하면 됩니다. 키 쌍을 생성 repository에 deploy key 추가 ssh conifg 설정 git clone 키 생성하기 터미널에서 ssh-keygen을 활용하여 아래의 옵션을 추가한 후 키 페어를 생성합니다. ssh-keygen -t rsa -b 2048 -f ~/.ssh/test_key t 옵션은 암호화 타입을 지정하고 b 옵션은 bit 크기를.. wono | discuss | tweet + it ops db softdelete postgresql Soft deletion with PostgreSQL: but with logic on the database!—Martian Chronicles, Evil Martians’ team blogRubyists might take special pleasure here, but every SQL and PostgreSQL dev can learn this unorthodox approach: putting soft delete logic on the database side. wono | discuss | tweet + it ops tls ssl Getting Caddy to issue TLS certificates for Private zones1. The problem I’m having: Hi, I am trying to do this. I have domain.me domain. I want to use *.hs.domain.me domain in my home lab and these services should not be publicly accessible. For this, I have added a NS reco… wono | discuss | tweetNext
+ it ops aws s3 presignedurl AWS S3 & Pre-signed URL 사용 후 발생한 문제들 (feat. CORS)이미지를 업로드하거나 삭제하는 행위는 해당 서비스에 권한이 있는 사람만 할 수 있다. 이를 위해 서버에서 Pre-signed Url을 받아와 AWS S3에 접근하도록 만들었다. 이런 구조가 되면서 몇 가지 문제가 발생했는데 다음과 같다. 사용자가 이미지를 제출하면 Client(React)는 서버에게 Pre-signed URL을 받아와 AWS S3에 바로… wono | discuss | tweet
+ it ops db dbeaver erd Two ways to use ERD in DBeaverAn Entity Relationship (ER) Diagram is a type of flowchart that illustrates how entities relate to each other within a system. In terms of a database wono | discuss | tweet
+ it ops db dbeaver Rearrange columns in a simpler way · Issue #19042 · dbeaver/dbeaverIs your feature request related to a problem? Please describe. Its really hard to re-arrange the columns from the result set by drag and drop one by one or I have write the SQL according to the column arrange I required. Describe the sol... wono | discuss | tweet
+ it ops db kysely cte kysely/site/docs/recipes/0010-extending-kysely.md at a43b270cb6c88208d1d3f79b958e774deebe63f2 · kysely-org/kyselyA type-safe typescript SQL query builder. Contribute to kysely-org/kysely development by creating an account on GitHub. wono | discuss | tweet
+ it ops db kysely cte vaylaopas/src/server/db/db.ts at 3a6c28047e5d23c5196344a6beb5c44c5f51c38f · arttuka/vaylaopasContribute to arttuka/vaylaopas development by creating an account on GitHub. wono | discuss | tweet
+ it ops db kysely How to write "SELECT 1 FROM tablename" - KyselyI want to create subquery for exists but don't know type select(1)...? should I use val or sql.lit or other way...? Thanks in advance https://kyse.link/?p=s&i=rF7gNapHXGQFdbmhVHJx wono | discuss | tweet
+ it ops db kysely Merge temp table as source table · Issue #959 · kysely-org/kyselyIs there a way to use temp table as the source table in merge statement something like this? await db.mergeInto('mainTable').using('tempData', 'mainTable.itemCode', 'tempData.itemCode').whenMatched()...... SQL Statement MERGE INTO MainTa... wono | discuss | tweet
+ it ops db kysely merge JSON utilities for `selectNoFrom` · Issue #1294 · kysely-org/kyselyDiscussed in https://discord.com/channels/890118421587578920/1315878442281209907/1315878442281209907 Currently, all the json utilities expect a column. While it is possible to use these utilities via CTEs: const exampleJson = { foo: { ba... wono | discuss | tweet
+ it ops db merge MERGE 문 사용법 (DUAL, UPDATE와 INSERT를 한번에)MERGE 문을 사용하면 변경할 테이블에 데이터가 존재하는지 체크하고, UPDATE, DELETE, INSERT를 한 번에 작업이 가능하다. MERGE 문을 사용하지 않을 경우 해당 조건으로 테이블을 SELECT 한 후 IF 조건을 사용하여 UPDATE나 INSERT로 분기하는 로직을 작성해야 하는 번거로움이 있다. MERGE 문의 경우 단일(한개의) 테이블에 UPDATE 또는 INSERT를 하는 경우 많이 사용하지만, 두개의 테이블을 비교하거나 서브 쿼리의 결과에 따라서 UPDATE, INSERT 작업이 가능하다. MSSQL MERGE 문 단일 테이블 사용법 (DUAL) 오라클에서는 DUAL이라는 dummy 테이블을 USING 절에 사용하면 단일 테이블 작업이 간단하지만, MSSQL에서는 DUAL 테이.. wono | discuss | tweet
+ it ops db postgresql merge PostgreSQL 15にMERGE文UPSERTがやってくる | DevelopersIOPostgreSQL 15がMERGE文を使ったUPSERTに対応します wono | discuss | tweet
+ it ops db postgresql merge Postgresql 로 Upsert 하기Postgres 9.5(2016년 1월 7일 이후 출시) 이후 가능한 문법입니다.존재하지 않는 경우 삽입, 존재하는 경우 Nothing존재하지 않는 경우 삽입, 존재하는 경우 Update삽입이 되었으면, id 반환삽입이 된 경우 삽입된 id값을 반환한다.Serial, wono | discuss | tweet
+ it ops node s3 image AWS S3 도입 (feat. Javascript v3 마이그레이션)버킷 생성부터 Node.js S3 코드 작성까지. AWS S3 SDK for Javascript v3 (Node.js) wono | discuss | tweet
+ it ops aws ami doc 16. Instance AMI 생성(실습)이번장에서 AMI 즉 인스턴스 이미지를 생성해 본다. 1) EC2의 인스턴스 메뉴에서 기존에 만들어 놓은 **Lucky-Instance**를 선택한다. 그리고 **작업 > 이미… wono | discuss | tweet
+ it ops nextjs cors websocket 문제는 언젠가 해결된다. NextJS 12버전에 nginx reverse proxy 적용 결과 나온 에러다. 로그 상으로 momentjs 모듈에서 발생한 에러로 보이지만, create-next-app으로 새로운 웹을 만들어도 같은 문제가 발생했다. 해결방법을 찾으려고 각종 국내 및 해외 개 wono | discuss | tweet
+ it ops key 암호화 알고리즘 비교: RSA vs ED25519서버 인프라를 세팅하기 위해 EC2 인스턴스를 만들다가 생긴 궁금증.RSA (Rivest-Shamir-Adleman):RSA의 보안은 큰 소수의 곱을 소인수분해하는 것이 어렵다는 사실에 기인하여 등장.키 길이에 크게 의존하는 보안성. 2048비트 이상이 권장되며, 40 wono | discuss | tweet
+ it ops github deploykeys [Git/Github] Repository의 Deploy key 사용하기 (ssh-keygen, 공개키, 비밀키)왜 사용하는가? 로컬이 아닌 공용 서버, 새로 구축한 서버에서 private repository를 가져올 때마다 인증을 해야 하는 번거로움이 있습니다. 이럴 때 repository에 public key(공개키)를 등록하고 클론할 서버에 private key(개인키)를 들고 있게 하면 간편하게 repository에 접근할 수 있습니다. 아래 순서대로 진행하면 됩니다. 키 쌍을 생성 repository에 deploy key 추가 ssh conifg 설정 git clone 키 생성하기 터미널에서 ssh-keygen을 활용하여 아래의 옵션을 추가한 후 키 페어를 생성합니다. ssh-keygen -t rsa -b 2048 -f ~/.ssh/test_key t 옵션은 암호화 타입을 지정하고 b 옵션은 bit 크기를.. wono | discuss | tweet
+ it ops db softdelete postgresql Soft deletion with PostgreSQL: but with logic on the database!—Martian Chronicles, Evil Martians’ team blogRubyists might take special pleasure here, but every SQL and PostgreSQL dev can learn this unorthodox approach: putting soft delete logic on the database side. wono | discuss | tweet
+ it ops tls ssl Getting Caddy to issue TLS certificates for Private zones1. The problem I’m having: Hi, I am trying to do this. I have domain.me domain. I want to use *.hs.domain.me domain in my home lab and these services should not be publicly accessible. For this, I have added a NS reco… wono | discuss | tweet