This gist contains tooling for running the pi coding-agent harness inside an isolated Docker sandbox.
create_pi_sandbox.sh automates building a custom Docker sandbox image that contains the pi CLI and your host ~/.pi/agent configuration files.
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "title": "Timezones (Standard time only!)" | |
| "description": "This does not account for Daylight Savings time.", | |
| "autosize": "pad", | |
| "signals": [ | |
| {"name": "centerX", "init": "100/2"}, | |
| {"name": "centerY", "init": "100/2"}, | |
| {"name": "radiusRef", "init": "min(100,100)*0.8"}, | |
| {"name": "sizeFactor", "init": "radiusRef/400"}, |
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "width": 500, | |
| "padding": 5, | |
| "signals": [ | |
| { | |
| "name": "address_input", | |
| "value": "", | |
| "bind": { | |
| "placeholder": "Search for an address", |
| `jq -c ' .[] | { index: { _index: "<my-index>"} }, .' < ./<my-file>.json > my-file-bulk.ndjson` |
| var gbfs2geojson = require("gbfs2geojson-js"); | |
| var fs = require("fs"); | |
| var autoDiscoveryUrl = | |
| "https://ckan0.cf.opendata.inter.prod-toronto.ca/dataset/2b44db0d-eea9-442d-b038-79335368ad5a/resource/142dfb32-d81b-474b-811a-dfc47560ac26/download/bike-share-json.json"; | |
| var data; | |
| gbfs2geojson.getAllData(autoDiscoveryUrl, data, (data, err) => { | |
| if (err) { |
| GET _search | |
| { | |
| "query": { | |
| "match_all": {} | |
| } | |
| } | |
| GET openstreetmap-2021.03.10/_mapping | |
| GET openstreetmap-ways/_mapping |
| OSMID [n|r|w][0-9]+ | |
| NODES (%{OSMID},?)+ | |
| MEMBERS (%{OSMID}@(\S+)?,?)+ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Display a map</title> | |
| <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | |
| <script src="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.js"></script> | |
| <link href="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.css" rel="stylesheet" /> | |
| <style> | |
| body { |
| jq -Rs @base64 MYFILENAME | jq "{ data: . }" > myobject.json |
ogr2ogr -f ElasticSearch \
-lco NOT_ANALYZED_FIELDS={ALL} \
http://elastic:changeme@localhost:9200 \