echo-chamber

(★ 10)

Code and examples for Echo Chamber LLM Jailbreak.

파일 탐색기

  • .gitignore
  • .pre-commit-config.yaml
  • .python-version
  • LICENSE
  • pyproject.toml
  • README.md

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

complete

설명 보기 ▼

Bash에서 쉘 명령의 인자 자동 완성 규측을 조회하고 설정.
Bash에서 `<Tab>` 키를 누르면 지정된 자동 완성이 실행됨.
관련 항목: `compgen`, `compopt`.
더 많은 정보: <https://www.gnu.org/software/bash/manual/bash.html#index-complete>.

complete -F {{function}} {{command}}

함수를 사용해 명령의 인자 자동완성을 설정 (완성 결과는 `$COMPREPLY` 변수에 저장됨):

complete -C {{autocomplete_command}} {{command}}

다른 명령을 사용하여 인자 자동완성을 설정 (`$1`은 명령, `$2`는 현재 커서가 위치한 인자, `$3`은 커서 앞의 인자):

complete -b {{command}}

명령의 인자를 쉘 내장 명령으로 자동 완성하도록 설정:

🔍

pass

설명 보기 ▼

비밀번호나 기타 민감한 데이터를 저장하고 읽기.
모든 데이터는 GPG로 암호화되며, Git 저장소로 관리됩니다.
더 많은 정보: <https://git.zx2c4.com/password-store/about/>.

pass init {{gpg_id_1 gpg_id_2 ...}}

하나 이상의 GPG ID를 사용하여 저장소 초기화 (또는 재암호화):

pass insert {{[-m|--multiline]}} {{path/to/data}}

새 비밀번호 및 추가 정보 저장 (새 줄에서 `<Ctrl d>`를 눌러 완료):

pass edit {{path/to/data}}

항목 편집:

🔍

pre-commit

설명 보기 ▼

커밋 전에 실행되는 Git 훅을 생성.
더 많은 정보: <https://pre-commit.com/#command-line-interface>.

pre-commit install

Git 훅에 pre-commit 설치:

pre-commit run

모든 스테이지된 파일에 pre-commit 훅 실행:

pre-commit run --all-files

스테이지 여부와 상관없이 모든 파일에 pre-commit 훅 실행:

🔍

ruff check

설명 보기 ▼

An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.
If no files or directories are specified, the current working directory is used by default.

ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Run the linter on the given files or directories:

ruff check --fix

Apply the suggested fixes, modifying the files in-place:

ruff check --watch

Run the linter and re-lint on change:

🔍

ruff format

설명 보기 ▼

An extremely fast Python code formatter.
If no files or directories are specified, the current working directory is used by default.

ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Format given files or directories in-place:

ruff format --check

Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise:

ruff format --diff

Print what changes would be made without modifying the files:

🔍

uv pip

설명 보기 ▼

Provides pip-like commands for installing, uninstalling, and managing packages.

uv pip install {{package}}

Install a package:

uv pip install {{[-r|--requirements]}} {{requirements.txt}}

Install packages from a requirements file:

uv pip install {{package==1.2.3}}

Install a package with a specific version:

🔍

uv sync

설명 보기 ▼

Update the project's environment to match the lockfile.

uv sync

Sync the project environment with the lockfile:

uv sync --all-extras

Sync and include all optional dependencies:

uv sync --extra {{extra_name}}

Sync with specific optional dependencies:

// repository documentation