A coding agent that runs entirely on your own machine. No API keys, no cloud, works offline.
pi is the agent you talk to. It runs against a local llama.cpp server hosting Google Gemma 4 (the unsloth
| package gcv_test | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
| ## | |
| ## WPS on OpenWRT | |
| ## This script enables Wi-Fi Protected Setup on OpenWRT. | |
| ## | |
| ## Resources | |
| ## http://wiki.openwrt.org/doc/uci/wireless#wps.options | |
| ## | |
| #Install the full wpad package | |
| opkg update |
| Hardware Perspective | |
| -------------------- | |
| * It is look like that Lenovo has aggregated bunch of sensors into one USB HID Device, this will be `2047:0855 Texas Instruments`. | |
| * This device has a big HID descriptor which report each sensor using `Usage Page 05 20 - Sensor Page (0x20)` | |
| * There are 8 reports in the descriptor, for each report there is a bit map of the sensor properties: | |
| ``` | |
| Usage 0A 09 03 - Property: Sensor Connection Type | |
| Usage 0A 16 03 - Property: Reporting State | |
| Usage 0A 19 03 - Property: Power State |
| ;; Needs terminal-notifier (brew install terminal-notifier) | |
| (defun notify-osx (title message) | |
| (call-process "terminal-notifier" | |
| nil 0 nil | |
| "-group" "Emacs" | |
| "-title" title | |
| "-sender" "org.gnu.Emacs" | |
| "-message" message)) | |
| ;; org-pomodoro mode hooks |
| package main | |
| import ( | |
| auth "github.com/abbot/go-http-auth" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| "time" | |
| ) |