Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%0N)/1000000))| // Types for the result object with discriminated union | |
| type Success<T> = { | |
| data: T; | |
| error: null; | |
| }; | |
| type Failure<E> = { | |
| data: null; | |
| error: E; | |
| }; |
| Name | Input | Output | |
|---|---|---|---|
| Gemini 2.0 Flash-Lite | $0.075 | $0.30 | |
| Mistral 3.1 Small | $0.10 | $0.30 | |
| Gemini 2.0 Flash | $0.10 | $0.40 | |
| ChatGPT 4.1-nano | $0.10 | $0.40 | |
| DeepSeek v3 (old) | $0.14 | $0.28 | |
| ChatGPT 4o-mini | $0.15 | $0.60 | |
| Gemini 2.5 Flash | $0.15 | $0.60 | |
| DeepSeek v3 | $0.27 | $1.10 | |
| Grok 3-mini | $0.30 | $0.50 |
| brew install caddy mkcert nss dnsmasq | |
| mkcert -install | |
| mkcert '*.app.test' '*.cdn.test' | |
| # rename the certs and move them under /usr/local/etc/caddy/certs | |
| cat <<EOF > /usr/local/etc/caddy/Caddyfile | |
| *.app.test:443, *.cdn.test:443 { |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2275613/hack.sh | sh | |
| # |