As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # NOTE: This script has a dependency on python for parsing | |
| ES_URL=http://localhost:9200 | |
| ES_USER=elastic | |
| ES_PASS=changeme | |
| ################## |
| PUT my_index | |
| { | |
| "mappings": { | |
| "doc": { | |
| "properties": { | |
| "securityTags": { | |
| "type": "keyword", | |
| "fields": { | |
| "length": { | |
| "type": "token_count", |
| # Create our mapping with a single attribute array: projects | |
| PUT abac-ingest-node-test | |
| { | |
| "mappings": { | |
| "doc": { | |
| "properties": { | |
| "projects": { | |
| "type": "keyword" | |
| } | |
| } |
| #!/bin/sh | |
| input=$(cat) | |
| cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd') | |
| model=$(echo "$input" | jq -r '.model.display_name // empty') | |
| effort=$(echo "$input" | jq -r '.effort.level // empty') | |
| used=$(echo "$input" | jq -r '.context_window.used_percentage // empty') | |
| cost=$(echo "$input" | jq -r '.cost.total_cost_usd // empty') | |
| rate5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty') | |
| rate7=$(echo "$input" | jq -r '.rate_limits.seven_day.used_percentage // empty') |