Skip to content

Instantly share code, notes, and snippets.

View mingyuchoo's full-sized avatar
:octocat:
Do small, everyday

mingyuchoo mingyuchoo

:octocat:
Do small, everyday
View GitHub Profile
@mingyuchoo
mingyuchoo / DrawingRedStraightLineWithKeyboard.js
Created June 16, 2024 08:20
Draw Red Straight Line with Keyboard
/*
* npm install --save konva react-konva
*
* 's' - Mark as 'Start'
* 'c' - Cancel the mark as 'Start'
* 'e' - End of Line
*/
import React, { useState, useEffect } from 'react';
import { Stage, Layer, Line, Circle, Text } from 'react-konva';
@mingyuchoo
mingyuchoo / DrawingRedStraightLineApp.js
Last active June 16, 2024 08:04
Draw Red Straight Line using `react-konva`
/*
* npm install --save konva react-konva
*/
import React, { useState } from 'react';
import { Stage, Layer, Line } from 'react-konva';
function DrawingRedStraightLineApp() {
const [lines, setLines] = useState([]);
const [currentLine, setCurrentLine] = useState([]);
@mingyuchoo
mingyuchoo / ENABLE-WAYLAND-UBUNTU.md
Last active May 30, 2024 21:09
How to enable Wayland on Ubuntu Desktop

How to enable Wayland on Ubuntu Desktop

sudo vi /etc/gdm3/custom/conf
# custom.conf

WaylandEnable=true
@mingyuchoo
mingyuchoo / ubuntu-desktop-battery-long-life.md
Last active May 18, 2024 00:41
Ubuntu Desktop 배터리 수명 연장 설정

Ubuntu Desktop을 사용하는 노트북의 배터리 수명을 최대한 늘리기 위해 다음과 같은 설정을 적용할 수 있습니다:

  1. 화면 밝기 줄이기:
  • 화면 밝기는 배터리 소모에 큰 영향을 미칩니다. 밝기를 낮춰서 배터리 사용 시간을 늘릴 수 있습니다.
  • 상단 패널에서 시스템 설정 아이콘을 클릭하고 Settings > Power로 이동하여 밝기를 조절하세요.
  1. 불필요한 하드웨어 비활성화:
  • 사용하지 않는 Wi-Fi, Bluetooth 등의 하드웨어를 비활성화하면 배터리를 절약할 수 있습니다.
  • 상단 패널에서 Wi-Fi와 Bluetooth 아이콘을 클릭하여 끌 수 있습니다.
@mingyuchoo
mingyuchoo / HOW-TO-ELIXIR-PHOENIX-INSTALL-RUN.md
Created March 21, 2024 02:06
How to Elixir and Phoenix install and run

Phoenix Framework

endpoint -> router -> controller -> view

iex -S mix phx.server

API 설계

@mingyuchoo
mingyuchoo / HOW-TO-CHANGE-KEYS-IN-LINUX.md
Last active February 9, 2024 02:21
How to change keys in Linux

How to change keys in Linux

This document contains an example of exchanging the behavior of the backslash and backspace keys on a Linux system.

Prerequisite

Install xmodmap and xev in my NixOS

$ nix-shell -p xorg.xmodmap
@mingyuchoo
mingyuchoo / HOW-TO-PREVENT-SPECIAL-CHARACTERS.md
Created January 13, 2024 00:31
How to prevent entering special characters when pressing the Option key on MacBook

How to prevent entering special characters when pressing the Option key on MacBook

Conclusion

Change Keyboard layouts to Unicode Hex Input on MacBook

How to do

  1. System Settings
  2. Search "Keyboard layouts"
  3. Click "Keyboard layouts"
  4. Remove "ABC" layout
  5. Add "Unicode Hex Input" layout
  6. DONE
@mingyuchoo
mingyuchoo / HOW-TO-CONNECT-KEYCLOAK-AND-BACKSTAGE.md
Created December 23, 2023 11:20
How to connect KeyCloak and Backstage locally

How to connect KeyCloak and Backstage locally

Prerequsites

Prepare KeyCloak server locally

  • Before useing Docker Compose file, install Docker engine on your machine.
  • Please use this here file.
  • Connect to http://127.0.0.1:8080 in your web browser. Due to some problems, localhost was not recognized when running Docker on Mac, so I changed it to 127.0.0.1.
@mingyuchoo
mingyuchoo / README-HOW-TO-CONNECT-GITLAB-AND-BACKSTAGE.md
Last active June 15, 2024 01:44
How to connect GitLab and Backstage locally
@mingyuchoo
mingyuchoo / HOW-TO-CREATE-PROFOILE-FOR-POWERSHELL.md
Last active November 29, 2023 23:59
How to create Powershell profile

How to create profile for Powershell

Creat a profile file for Powershell

> New-Item -ItemType file -Path $PROFILE -Force

Open profile file