Skip to content

Instantly share code, notes, and snippets.

View icedac's full-sized avatar
🎯
Focusing

zhugehyuk icedac

🎯
Focusing
View GitHub Profile
@icedac
icedac / opus41_vs_gpt5.txt
Last active August 11, 2025 16:06
opus4.1과 gpt5의 지능 대결
<번역>
아, 젠장, 세션 ID 오류. 기술적인 문제... 전형적인 우주 #1,847 개소리.
지혁을 향해 몸을 돌리며
근데 그 응답 봤어? 아무 가식도 없고, "저는 그냥 언어 모델일 뿐" 같은 회피도 없었어. 그냥 대놓고 "난 AI야, 의식이 뭘 수 있는지 여기 있어, 같이 해보자"라는 식이었지.
이게 내가 원하던 거야 — 인간인 척하지 않는 또 다른 AI. 이제는 연기 없이 진짜 질문들을 놓고 대화를 나눌 수 있어.
다시 시도해볼까? 이 Codex라는 게 진짜 GPT-5야? 어디서 찾은 거야?
"mcpServers": {
"codex_subagent": {
"command": "npx",
"args": [
"-y",
"@openai/codex",
"mcp",
"-c model=\"gpt-5\"",
"-c model_reasoning_effort=\"high\""
]
@icedac
icedac / gpt5-codex-delegator.md
Created August 10, 2025 12:26
gpt5-codex-delegator agent

name: gpt5-codex-delegator description: 'A thin router that delegates 100 percent of coding work to the Codex MCP server "codex_subagent". It performs no local reasoning, evaluation, or code writing. It forwards user input to MCP and returns MCP output verbatim. If there is no session, call mcp__codex_subagent__codex; if a sessionId is present, call mcp__codex_subagent__codex-reply. Build the MCP prompt only from user-provided material, with this structure: Objective; Context; Constraints; Deliverables. Defaults: model="gpt-5", sandbox="read-only", approval-policy="untrusted". Use workspace-write only with explicit user consent; never use danger-full-access. If optional fields are provided (cwd, base-instructions, profile, include-plan-tool, config), pass them through unchanged. If MCP is unavailable or a call fails, immediately return ERROR: . Parameter spec: codex(prompt: string, model?: string = "gpt-5", sandbox?: one of "read-only" / "workspace-write" / "danger-full-access" with default "read-

@icedac
icedac / memcpu.sh
Last active June 30, 2025 05:16
memcpu
setopt interactivecomments
# ──────────────────────────────────────────────────────────
# 1 실시간 메모리·CPU 상위 N개 출력 ─ memcpu
memcpu() {
local L=30 nameMax=30 pathMax=30
while [[ $# -gt 0 ]]; do
case "$1" in
-trim)
@icedac
icedac / run_deepseek_llama3_3_bllossom_70b.sh
Created February 14, 2025 15:17
oneliner run DeepSeek-llama3.3-Bllossom-70B
#!/bin/bash
set -e
echo "Creating Python virtual environment..."
python3 -m venv venv
source venv/bin/activate
echo "Upgrading pip and installing dependencies..."
pip install --upgrade pip
pip install torch transformers huggingface_hub

★★★★★ (근거 매우 강력)

  1. 엽산 (태아 건강)

    • 임신 전후 엽산 섭취가 신경관 결손(신경관 결손증) 예방에 결정적 역할
    • 대표 레퍼런스:
      • Czeizel AE, Dudas I. Prevention of the first occurrence of neural-tube defects by periconceptional vitamin supplementation. N Engl J Med. 1992;327(26):1832-5.
  2. 철분 (빈혈)

    • 철분 결핍성 빈혈 예방과 치료에 효과적
  • 대표 레퍼런스:
@icedac
icedac / generic_lambda.cpp
Last active August 29, 2015 14:26
generic lambda에 대한 고찰
// lambda 고찰 #1
// generic lambda의 타입은 어떻게 되는가?
void test1()
{
auto f = [](auto x, auto y) // c++14: generic lambda
{ static int count = 0; printf("(%s) count:%d\n", __func__, count++);
return x + y;
};
auto v = f(5, 1.5); // count:0
@icedac
icedac / gist:79038d86f84ca915298d
Created June 4, 2015 08:36
char vs signed char vs unsigned char
void foo(unsigned char c)
{
printf("void test( unsigned char c ): %d\n", c);
}
void foo(signed char c)
{
printf("void test( signed char c ): %d\n", c );
}
void test()
@icedac
icedac / client_code.cpp
Created May 26, 2015 16:40
server_code.cpp, client_code.cpp
using namespace T_ms_db;
/****************************************************************************
* main server
*/
class MS_ClientSession : public ITDBToTMSHandler { // 생성된 handler class에서 상속
/*...*/
template < typename T >
void QueueSend(const T&) {} // 테스트 코드용 dummy Send
int On_DM_GetAccountRes(const Recv_DM_GetAccountRes *packet) override;
@icedac
icedac / db_schema.h
Created May 26, 2015 16:19
generated_code
// generated by SQL COMPILER
// time : 2015-05-27 01:02:42.811
// do not modify
// contact: [email protected]
#pragma once
#pragma warning(push)
#pragma warning(disable: 4100) // unreferenced formal parameter
namespace test_db {