Skip to content

Instantly share code, notes, and snippets.

View shoveller's full-sized avatar

cinos shoveller

  • SEOUL, SouthKorea
  • 23:26 (UTC +09:00)
View GitHub Profile
@shoveller
shoveller / install-ccpm.sh
Last active August 28, 2025 15:50
Install CCPM - Clone ccpm repository and setup Claude configuration in one command
#!/bin/bash
#
# Claude Configuration Setup Script
#
# Description: Clones the ccpm repository and copies the .claude configuration
# to the current directory for Claude IDE integration.
#
# Author: Automated script generation
# Version: 1.0
@shoveller
shoveller / setup-claude-config.sh
Last active August 28, 2025 15:42
Robust shell script to clone ccpm repository and setup Claude configuration
#!/bin/bash
#
# Claude Configuration Setup Script
#
# Description: Clones the ccpm repository and copies the .claude configuration
# to the current directory for Claude IDE integration.
#
# Author: Automated script generation
# Version: 1.0
@shoveller
shoveller / module_resolution.md
Last active August 22, 2025 06:56
패키지 매니저 별 모듈 해석 전략

요약

  • npm 과 yarn classic 은 node.js 의 module resolution 을 그대로 사용한다
  • pnpm 은 소프트링크와 하드링크를 이용해 node.js 의 module resolution 을 흉내낸다
    • pnpm 은 그 자체가 완성형이다. 한샘 가구 같은 완성형 가구에 비유할 수 있다.
  • yarn berry 는 플러그인 시스템을 이용해서 module resolution 을 새로 만들 수 있다.
    • yarn berry 는 새로운 표준을 제시하는 라이브러리다. 이케아 가구 같은 조립식 가구에 비유할 수 있다.
    • 내장된 노드 링커 플러그인만 사용해도 6개의 전략을 선택해서 사용할 수 있다.
  • npm은 v9.4 부터 pnpm스타일의 node_modules 를 지원한다.
@shoveller
shoveller / gist:56e5a84560f48ceabeda221bb74350f1
Last active August 22, 2025 03:52
node.js 의 모듈 해석 알고리즘(module resolution algorithm)

요약

  • node.js 는 모듈을 import 할 때 사용하는 독자적인 규칙이 있다.
  • 이 알고리즘을 module resolution algorithm 이라고 부른다.
  • 이 알고리즘은 퍼포먼스와 관련해서 비판이 있다.
  • npm, yarn classic 은 node.js 의 module resolution 을 그대로 사용한다.
  • yarn berry 와 pnpm 은 node.js 의 module resolution 을 사용하지 않는다.

모듈 해석 알고리즘(module resolution algorithm)

모듈 해석 알고리즘은 아래와 같은 단계를 따른다

@shoveller
shoveller / Claude.md
Created July 8, 2025 08:18
토큰을 많이 소비하는 작업을 제미나이에게 하청주기

Using Gemini CLI for Large Codebase Analysis

When analyzing large codebases or multiple files that might exceed context limits, use the Gemini CLI with its massive context window. Use gemini -p to leverage Google Gemini's large context capacity.

File and Directory Inclusion Syntax

Use the @ syntax to include files and directories in your Gemini prompts. The paths should be relative to WHERE you run the gemini command:

@shoveller
shoveller / README.md
Created July 7, 2025 04:20 — forked from AndrewAltimit/!README.md
Claude Code and Gemini CLI Integration

Gemini CLI Integration for Claude Code MCP Server

A complete setup guide for integrating Google's Gemini CLI with Claude Code through an MCP (Model Context Protocol) server. This provides automatic second opinion consultation when Claude expresses uncertainty or encounters complex technical decisions.

🚀 Quick Start

@shoveller
shoveller / 요약.md
Created July 6, 2025 10:53
유튜브 요약봇용 유사 릴리스 프롬프트

YouTube 트랜스크립션 요약 시스템 프롬프트

Context

사용자가 기술적 주제를 다루는 YouTube 비디오의 트랜스크립션(자막) 텍스트를 제공합니다.

Input

  • 입력 데이터: "{{ $json.text }}"
  • 예상 형식: YouTube 트랜스크립션 텍스트 (시간 정보 포함/미포함 모두 가능)

Task

@shoveller
shoveller / prj.sh
Last active June 21, 2025 01:32
pnpm + turborepo + eslint + prettier + husky + typescript + sementic-release + reacr-router latest
#!/bin/bash
set -e
# Color codes for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
@shoveller
shoveller / cursor-agent-system-prompt.txt
Created March 17, 2025 04:10 — forked from pchaganti/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@shoveller
shoveller / postbodyEnc.md
Created September 24, 2023 04:50 — forked from jays1204/postbodyEnc.md
Http Method는 POST, Content-Type이 application/x-www-form-urlencoded인 경우 body를 encoding하는게 맞을까?

요즘의 Request

RestFul API를 사용하며 json을 많이 사용하게 됨에 따라 요즈음의 request의 Content-Type은 대부분이 application/json인 것이 많다.

아니면 파일 첨부를 위해 multipart/*를 사용한다. application/x-www-form-urlencoded는 form에서 default로 사용되는 것 이외에는 사실 잘 사용하지 않는 편으로 보인다.

요새 자주 사용하지 않지만, 하지만 여전히 application/x-www-form-urlencoded를 사용하는 경우가 존재한다.

Content-Type이 다름에 따라 뭐가 달라지겠느냐 하겠지만 다른 점이 분명히 있다.