Skip to content

Instantly share code, notes, and snippets.

View miyu4u's full-sized avatar

miyu kim miyu4u

  • Seoul
View GitHub Profile
@miyu4u
miyu4u / main.ts
Created May 7, 2025 07:45
nestjs/jwt crash at nodejs v24.0.0
import '@nestjs/jwt'
@miyu4u
miyu4u / fix.sh
Created August 17, 2023 11:48 — forked from koreapyj/fix.sh
Fix PiKVM WiFi malfunction issues on Raspberry Pi Zero 2 W
rw
cd /lib/firmware/brcm
ln -s ../cypress/cyfmac43430-sdio.bin brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.bin
ln -s ../cypress/cyfmac43430-sdio.clm_blob brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.clm_blob
ln -s brcmfmac43430-sdio.raspberrypi,3-model-b.txt brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.txt
ro
reboot
@miyu4u
miyu4u / mocking.ts
Last active May 27, 2020 13:33
mocking typescript class depedency with jest test framework
import { FoobarService } from "./foobar.service"
import { FooService } from "./foo.service"
import { BarService } from "./bar.service"
jest.mock("./foo.service")
jest.mock("./bar.service")
describe("foobar service", ()=>{
let service:FoobarService
let foo:FooService
let bar:BarService
@miyu4u
miyu4u / registration.js
Created February 24, 2020 16:22
국세청 사업자등록상태조회 Promise Wrapper
/**
* 국세청 사업자등록상태조회 Promise Wrapper
*
* 사용으로 인해 발생하는 문제는 모두 사용 당사자에게 있습니다.
*/
function registration() {
if (typeof (WebSquare) == "undefined") throw "국세청 모듈이 존재하지 않습니다.";
var _eventKey = "fetch"
@miyu4u
miyu4u / heros.controller.ts
Last active January 23, 2020 13:24
NestJs TypeOrm create MultiTenant Connection at runtime Example (Multiple DB, Multiple Schema)
import { Controller, Scope } from '@nestjs/common';
import { Crud } from '@nestjsx/crud';
import { Heros } from '../entity/heros.entity';
import { HerosService } from './heros.service';
@Crud({
model: {
type: Heros
}