Made with ds4go which uses the very interesting ds4 inferencing engine. These are all works in progress.
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "strings" | |
| "time" | |
| tea "charm.land/bubbletea/v2" |
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 | |
| # | |
| # This script is used to generate a version string for the go.mod replace directive. | |
| # This is of the format version-timestamp-hash, where version is the current version of the module, | |
| # timestamp is the current time in UTC, and hash is the short git hash of the current commit. | |
| # | |
| # This script emits the "version-timestamp-hash" based on the current git HEAD. | |
| # | |
| # If passed with an argument, that string is used as the version, | |
| # otherwise "v0.0.0" is used as the default version. |
Last night we was my first time doing LLM-based performance engineering, and wow what fun! I token-maxxed $20 of Codex 5.5, then wrapped up with Opus 4.7, along with Gemini for some code reivew.
After six hours, I and a 165x improvement of PIXterm! What follows is the performance log we kept.
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
| package curl | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "strconv" | |
| "strings" | |
| "unicode/utf8" |
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
| # within DuckDB run these commands | |
| # load the parquet ohlcv files, which start with syms | |
| CREATE TABLE ohlcvs AS SELECT * FROM './syms*.parquet'; | |
| # load the publishers parquet | |
| CREATE TABLE publishers AS SELECT * FROM './publishers.parquet'; | |
| # query for the top publisher_id for each date,ticker | |
| # QUALIFY is DuckDB dialect | |
| SELECT date(ts_event),symbol,volume,close,P.dataset FROM ohlcvs O |
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
| events { | |
| worker_connections 4096; ## Default: 1024 | |
| } | |
| http { | |
| # DEBUG: | |
| map $uri $proxy_uri_base { | |
| "~/crypto-proxy/(?<proxy_base>[^/]*)" $proxy_base; | |
| default $uri; | |
| } |
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
| # Grafana PDC -- private network tunnel | |
| # This is templated by Terraform templatefile() | |
| # https://grafana.com/docs/grafana-cloud/connect-externally-hosted/private-data-source-connect/configure-pdc/ | |
| job "grafana-pdc" { | |
| region = "global" | |
| datacenters = ["${NOMAD_DATACENTER}"] | |
| namespace = "${NOMAD_NAMESPACE}" | |
| type = "service" |
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
| // Copyright (c) 2024 Neomantra BV | |
| // | |
| // Opinionated Reader/Writer wrappers | |
| package nmio | |
| import ( | |
| "compress/gzip" | |
| "io" | |
| "os" |
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
| func VerifyDirectoryExists(dirPath string) error { | |
| if fileInfo, err := os.Stat(dirPath); err != nil { | |
| if os.IsNotExist(err) { | |
| return fmt.Errorf("directory '%s' does not exist", dirPath) | |
| } else { | |
| return fmt.Errorf("error filestat on '%s': %w", dirPath, err) | |
| } | |
| } else if !fileInfo.IsDir() { | |
| return fmt.Errorf("'%s' exists but is not a directory", dirPath) | |
| } |
NewerOlder