Skip to content

Instantly share code, notes, and snippets.

View ybhwang's full-sized avatar
💭
Whoosh...

Yuchan Hwang ybhwang

💭
Whoosh...
View GitHub Profile
@ybhwang
ybhwang / safari-compatibility-variant-fix.md
Created September 5, 2023 04:56
How to fix post character instead of switched character to compatibility variant in Safari Browser.

Before

fetch(URL, {
  method: "POST",
  body: JSON.stringify({
    foo: bar
  }),
})

Create ZIP for Upload

$ mkdir python && cd python
$ pip3 install PyJWT -t . && cd ..
$ zip -r python.zip .

Create Lambda Layer

@ybhwang
ybhwang / mongodb-find-duplicated.md
Created June 29, 2023 04:26
MongoDB 중복값 검출 쿼리
import { MongoClient, ServerApiVersion } from "mongodb";

const uri = "[MONGODB_URI]";
const options = {
  serverApi: {
    version: ServerApiVersion.v1,
    strict: true,
 deprecationErrors: true

nvm allows you to quickly install and use different versions of node via the command line.

curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@ybhwang
ybhwang / open-jdk.md
Created October 11, 2021 16:23
OpenJDK for Linux with Debian

AdoptOpenJDK

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt update
sudo apt install adoptopenjdk-[VERSION]-hotspot

OpenJDK

@ybhwang
ybhwang / oh-my-zsh.md
Last active October 11, 2021 16:32
ZSH with OhMyZsh
  • A Unix-like operating system: macOS, Linux, BSD. On Windows: WSL2 is preferred, but cygwin or msys also mostly work.
  • Zsh
  • curl or wget
  • git

Use one of the two commands.