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/sh | |
# treecat - A script to display directory structure or file contents for multiple paths. | |
# (Generated with Gemini Pro 2.5) | |
# --- Default Configuration --- | |
MAX_SIZE=102400 # 100 KB | |
SHOW_HIDDEN=false | |
USE_GITIGNORE=true | |
# TARGET_PATH is now handled by arguments |
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
import polars as pl | |
nginx_log_pattern = ( | |
r'(?<remote_addr>[^ ]+) - ' | |
r'(?<remote_user>.+) ' | |
r'\[(?<time_local>[^\]]+)] ' | |
r'"(?<request>(?<request_method>\w+) ' | |
r'(?<request_uri>[^?]+)(?<request_query_string>\?.*)? ' | |
r'(?<request_protocol>[^"]+)|[^"]*)?" ' | |
r'(?<status_code>[^ ]+) ' |
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
export EDITOR="nvim" | |
export TERMINAL="alacritty" | |
export BROWSER="firefox" | |
export PATH="$PATH:$HOME/.local/bin" | |
if [[ "$(tty)" = "/dev/tty1" ]]; then | |
startx ~/.xinitrc | |
fi |