Skip to content

Instantly share code, notes, and snippets.

View mryhryki's full-sized avatar

MORIYA Hiroyuki mryhryki

View GitHub Profile
@mryhryki
mryhryki / sequence.mermaid
Last active December 23, 2024 03:22
OAuth 2.0 の Authorization Code Flow を Webアプリで考えた場合のシーケンス図
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mryhryki
mryhryki / color.sh
Last active December 5, 2024 07:05
Show color patterns on CLI
#!/usr/bin/env bash
printf "\e[30m%se[30m \e[0m" '\'
printf "\e[31m%se[31m \e[0m" '\'
printf "\e[32m%se[32m \e[0m" '\'
printf "\e[33m%se[33m \e[0m" '\'
printf "\e[34m%se[34m \e[0m" '\'
printf "\e[35m%se[35m \e[0m" '\'
printf "\e[36m%se[36m \e[0m" '\'
printf "\e[37m%se[37m \e[0m" '\'

Check binary size generated by bun compile

How to Use

git clone "https://gist.github.com/371c1c782c2b885d2765ac2143670ecb.git" "./bun-compile-size"
sh ./bun-compile-size/exec.sh
less "./bun-compile-size/$(ls -1 "./bun-compile-size" | sort | grep -E "^_log-.*\.md$" | tail -n 1)"

Issue M2M Token for Auth0

Prepare

  1. Setup Node.js (Required version >= 20)
  2. Clone this Gist
  3. Run npm install to install dependencies

Set Common Environment Variables

@mryhryki
mryhryki / !README.md
Last active April 24, 2024 08:32
Demo scripts for STUDDi on 2023-10-10.

Demo scripts for STUDDi on 2023-10-10

How to Use

Prepare

export SCRIPT_URL='https://gist.githubusercontent.com/mryhryki/20764e285704e29aa075c758a5e273bf/raw/index.ts?1'
@mryhryki
mryhryki / !README.md
Last active May 5, 2023 09:20
Comparison of search speeds between Arrays and Sets

Comparison of search speeds between Arrays and Sets

Execution

$ node ./index.js

Result

@mryhryki
mryhryki / !README.md
Last active February 15, 2023 05:27
Build eml-parse-js

example-nutjs

Setup

$ npm install

Execute

google-oauth-for-google-photos

Setup

$ npm run setup
# Edit ./config.js file

Execute