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
| #!/usr/bin/env bash | |
| # bash-install: Safe wrapper for "curl ... | bash" install patterns. | |
| # Reads a piped script, shows it in a pager, and lets you accept, deny, | |
| # or ask an LLM to review it before running. | |
| set -euo pipefail | |
| OPENAI_MODEL="gpt-4.1-mini" | |
| OPENAI_API_URL="https://api.openai.com/v1/chat/completions" | |
| LLM_MAX_BYTES="${BASH_INSTALL_LLM_MAX_BYTES:-102400}" # 100 KB default |
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
| # After lots of trying, for some really weird reason this is the way it has to be done: | |
| import cv2 | |
| import cairo | |
| from igraph import drawing | |
| w = 1000 | |
| h = 1000 | |
| surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h) |