Skip to content

Instantly share code, notes, and snippets.

2025/03/21 20:45:23 routes.go:1230: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:true OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:1h0m0s OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:1000 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
time=2025-0
mapping:
parcel_number,parcel_id
account_number,None
land_use_code,use_type
land_use_description,prop_type
zoning_code,None
num_buildings,None
num_stories,floor_count
year_built,dwelling_year_built
@tjwebb
tjwebb / docker-compose.yml
Created March 19, 2025 18:41
llm inside postgres
ollama:
container_name: ollama_harmonizer
image: ollama/ollama:0.6.2
build:
context: ./harmonizer
ports:
- "11434:11434"
restart:
unless-stopped
@tjwebb
tjwebb / gist:1fc6a50c83b8f7324c5b14123c4baffd
Created February 8, 2025 21:20
Ollama + Vision Example
from langchain_ollama import OllamaLLM
from langchain_core.messages import HumanMessage, SystemMessage
import base64
text_prompt = """
You are a robot for a homeowners insurance underwriter.
You observe and record the physical characteristics of residential property from aerial imagery.
Response Format: JSON
http://chronos-st.blogspot.com/2007/12/smalltalk-in-one-page.html
http://www.csci.csusb.edu/dick/samples/smalltalk.syntax.html
Formal EBNF Specification of Smalltalk Syntax
1. Character = ? Any Unicode character ?;
2. WhitespaceCharacter = ? Any space, newline or horizontal tab character ?;
3. DecimalDigit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
4. Letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M"
| "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
function tooEarlyDate (horrible, sad) {
let lessHorrible = horrible.toLocaleTimeString();
let lessSad = new Date(sad).valueOf();
let offset = horrible.getTimezoneOffset();
//let [ no, stillno, nope, junk, newMoreGoodTime ] = new Date((offset * 60 * 1000) + lessSad).toISOString()
let newMoreGoodTime = new Date(lessSad).toISOString().replace(/^.+T/, '').replace(/\.0.+/, '');
return `at ${lessHorrible} steve said ${newMoreGoodTime} is too early to wake up`;
}
@tjwebb
tjwebb / s17-kernel-log
Created November 19, 2019 01:30
S17 kernel log with blinking red fault light
Booting Linux on physical CPU 0x0
Linux version 4.6.0-xilinx-gff8137b-dirty (lzq@armdev2) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-23) ) #25 SMP PREEMPT Fri Nov 23 15:30:52 CST 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Xilinx Zynq
cma: Reserved 16 MiB at 0x0e000000
Memory policy: Data cache writealloc
On node 0 totalpages: 61440
@tjwebb
tjwebb / va-norfolk-1
Created July 15, 2018 21:38
acropoly-tnm-products
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/NED/LPC/projects/VA_FEMA_SouthernCities_2011/las/tiled/VA_FEMA_SouthernCities_2011_000082.zip
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/VA_FEMA_SouthernCities_2011/laz/VA_FEMA_SouthernCities_2011_000082.laz
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/NED/LPC/projects/VA_FEMA_SouthernCities_2011/las/tiled/VA_FEMA_SouthernCities_2011_000079.zip
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/VA_FEMA_SouthernCities_2011/laz/VA_FEMA_SouthernCities_2011_000079.laz
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/NED/LPC/projects/VA_FEMA_SouthernCities_2011/las/tiled/VA_FEMA_SouthernCities_2011_000078.zip
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/VA_FEMA_SouthernCities_2011/laz/VA_FEMA_SouthernCities_2011_000078.laz
ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/NED/LPC/projects/VA_FEMA_SouthernCities_2011/las/tiled/VA_FEMA_SouthernCities_2011_000072
@tjwebb
tjwebb / brew-install-qgis.sh
Created July 15, 2018 00:23
Install QGIS on mac from homebrew
pip install matplotlib psycopg2 requests jinja2 pygments
brew tap osgeo/osgeo4mac
brew install qgis2

Keybase proof

I hereby claim:

  • I am tjwebb on github.
  • I am tjwebb (https://keybase.io/tjwebb) on keybase.
  • I have a public key whose fingerprint is D8E1 9082 C1CF 7905 4AE6 383E F036 DF91 2D60 C856

To claim this, I am signing this object: