Skip to content

Instantly share code, notes, and snippets.

View qzaidi's full-sized avatar
💭
smiling

Qasim Zaidi qzaidi

💭
smiling
View GitHub Profile
@qzaidi
qzaidi / add-jev-to-kimi-code.md
Created October 4, 2026 07:20
Add the Jev decision model to Kimi Code via any System One-compatible provider (jev-mcp compatible mode)

Adding Jev to Kimi Code via any compatible provider

jev is a decision model, not a chat model. It is served behind a "System One"-style endpoint that takes POST { "model", "state", "questions" } and returns typed judgments — an answers object plus token usage. That means it cannot be added to ~/.kimi-code/config.toml under [models] with protocol = "openai": the agent loop would send chat-completions payloads (/chat/completions, messages, tools) that the decisions endpoint rejects.

The right way to consume it in Kimi Code is the @jkudish/jev-mcp MCP server in compatible-endpoint mode. The server speaks the decisions protocol for you and exposes twelve judgment tools to the agent: jev_verify, jev_screen, jev_noul, jev_find, jev_rerank, jev_classify, jev_decide, jev_compare, jev_extract, jev_audit, jev_review, jev_gate.

This works with any gateway that implements the same

@qzaidi
qzaidi / jq-cheat.md
Last active August 19, 2022 07:23
jq cheat sheet

Convert json to csv

cat json | jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv'

Alternative method, handles nested objects

Create a file named filter.jq

@qzaidi
qzaidi / quarantine-mac
Last active November 7, 2024 06:45
remove quarantine
xattr -d com.apple.quarantine /path/to/file
Alternatively, Go to Applications, Ctrl Click on the app and choose open.
@qzaidi
qzaidi / gist:f2a8ebf51daa8479f62788db753e2b81
Created May 25, 2022 08:55 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@qzaidi
qzaidi / unicode.txt
Created December 22, 2020 08:54
unicode - farsi
Various unicode utilities
https://www.online-toolz.com/tools/text-unicode-entities-convertor.php
@qzaidi
qzaidi / openssl
Created May 31, 2020 15:49
SSL Certs verification
## To fetch a cert chain and make server.crt ##
openssl s_client -showcerts -verify 5 -servername aaacertificateservices.test.certificatetest.com -connect aaacertificateservices.test.certificatetest.com:443
## To view validity
echo | openssl s_client -servername api.snapp.site -connect api.snapp.site:443 2>/dev/null | openssl x509 -noout -dates
@qzaidi
qzaidi / vpn.sh
Created March 31, 2020 12:43
Openfortivpn bitbar script
#!/bin/bash
# Run sudo visudo and whitelist your user, eg
#qasim ALL=(ALL) NOPASSWD: /usr/local/bin/openfortivpn
#qasim ALL=(ALL) NOPASSWD: /usr/bin/killall -2 openfortivpn
VPN_EXECUTABLE=/usr/local/bin/openfortivpn
VPN_EXECUTABLE_PARAMS="-c $HOME/vpn" # Optional
VPN_INTERFACE=ppp0
# Command to determine if VPN is connected or disconnected
VPN_CONNECTED="/sbin/ifconfig | egrep -A1 $VPN_INTERFACE | grep inet"

echo "show errors" | socat unix-connect:/var/lib/haproxy/run/haproxy.sock stdio | more