This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Please implement the approved plan below. | |
| Execution Instructions: | |
| 1. Act as the orchestrator. Do not try to stuff every single file read/write or deep exploration into this single main context if it gets bloated. | |
| 2. Delegate specialized, bounded subtasks (e.g., heavy codebase exploration, writing tests for isolated modules, debugging specific stack traces, or reviewing diffs) to built-in or custom subagents using the Agent/Task tool. | |
| 3. For subagent delegation, clearly specify the GOAL, constraints, and required output format—do not micro-manage step-by-step procedures. | |
| 4. Integrate the summarized results from each subagent back into the main workflow. | |
| 5. Run verification/tests after implementing each phase, and mark steps DONE only when tests pass. | |
| Here is the plan to implement: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker compose ls --format json | jq -r '.[].ConfigFiles' | xargs -I {} docker compose -f {} down |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mix.install( | |
| [ | |
| {:kino_bumblebee, "~> 0.5.0"}, | |
| {:exla, ">= 0.0.0"} | |
| ], | |
| config: [nx: [default_backend: EXLA.Backend]] | |
| ) | |
| repository_id = "nitrosocke/Ghibli-Diffusion" | |
| {:ok, tokenizer} = Bumblebee.load_tokenizer({:hf, "openai/clip-vit-large-patch14"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pacman -S cuda cudnn | |
| export PATH=$PATH:/opt/cuda/bin | |
| nvcc --version | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ref. https://github.com/stellar/stellar-etl/tree/master?tab=readme-ov-file#history-archive-commands | |
| if [ $# -lt 3 ]; then | |
| echo "Usage: $0 <export_type> <start_ledger> <end_ledger> [network]" | |
| echo " $0 ledgers 2 500" | |
| echo " $0 transactions 2 500 --futurenet" | |
| echo " $0 operations 2 500 --testnet" | |
| echo " $0 effects 2 500" | |
| echo " $0 assets 2 500 --futurenet" | |
| echo "===== History Archive URLs =====" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -v $PWD/history:/working stellar/stellar-etl stellar-etl export_ledger_entry_changes \ | |
| --start-ledger 2 \ | |
| --end-ledger 500 \ | |
| --output /working/ \ | |
| --gcs-bucket "" \ | |
| --testnet \ | |
| -x /usr/bin/stellar-core \ | |
| -c docker/stellar-core_testnet.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-deployment | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: nginx | |
| replicas: 2 # tells deployment to run 2 pods matching the template | |
| template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ $times := 2 }} | |
| {{- range $i := until $times }} | |
| #{{ $i }} | |
| {{- end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # user <1---*> playlist <1---*> playlist_song | |
| (from p in Playlist, | |
| join: u in assoc(p, :user), | |
| left_join: ps in assoc(p, :songs), | |
| where: p.id == ^1 and u.id == ^1, | |
| group_by: p.id, | |
| select: %{ | |
| playlist_id: p.id, | |
| song_count: count(ps.id) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT pg_terminate_backend(pg_stat_activity.pid) | |
| FROM pg_stat_activity | |
| WHERE pg_stat_activity.datname = 'TARGET_DB' | |
| AND pid <> pg_backend_pid(); |
NewerOlder