Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
####### # # E-scripts on json. # # Note 1: use the eev command (defined in eev.el) and the # ee alias (in my .zshrc) to execute parts of this file. # Executing this file as a whole makes no sense. # An introduction to eev can be found here: # # (find-eev-quick-intro) # http://anggtwu.net/eev-intros/find-eev-quick-intro.html # # Note 2: be VERY careful and make sure you understand what # you're doing. # # Note 3: If you use a shell other than zsh things like |& # and the for loops may not work. # # Note 4: I always run as root. # # Note 5: some parts are too old and don't work anymore. Some # never worked. # # Note 6: the definitions for the find-xxxfile commands are on my # .emacs. # # Note 7: if you see a strange command check my .zshrc -- it may # be defined there as a function or an alias. # # Note 8: the sections without dates are always older than the # sections with dates. # # This file is at <http://anggtwu.net/e/json.e> # or at <http://anggtwu.net/e/json.e.html>. # See also <http://anggtwu.net/emacs.html>, # <http://anggtwu.net/.emacs[.html]>, # <http://anggtwu.net/.zshrc[.html]>, # <http://anggtwu.net/escripts.html>, # and <http://anggtwu.net/>. # ####### # «.json-rpc» (to "json-rpc") # «.jsonrpc» (to "jsonrpc") # «.luarocks» (to "luarocks") https://github.com/josephburnett/jd JSON diff and patch https://stackoverflow.com/questions/352098/how-can-i-pretty-print-json-in-a-shell-script # (find-es "youtube" "info") https://mcyoung.xyz/2024/12/10/json-sucks/ https://www.reddit.com/r/emacs/comments/uvlm1o/new_package_jsonianmode/ https://github.com/iwahbe/jsonian # (find-fline "~/LOGS/2024dec12.emacs2" "json-mode.el and jsonian") ##### # # json-rpc # 2024dec26 # ##### # «json-rpc» (to ".json-rpc") # (find-pip3-links "json-rpc") # (find-angg ".emacs" "ee-rstdoc-:jsonrpc") # https://json-rpc.readthedocs.io/en/latest/ # (find-wgetrecursive-links "https://json-rpc.readthedocs.io/en/latest/") # https://github.com/pavlov99/json-rpc # (find-git-links "https://github.com/pavlov99/json-rpc" "jsonrpc") # (code-c-d "jsonrpc" "~/usrc/json-rpc/") # (find-jsonrpcfile "") # (find-jsonrpcfile "examples/") # (find-jsonrpcfile "examples/client.py") # (find-jsonrpcfile "examples/server.py") # (find-jsonrpcdocrfile "") # (find-jsonrpcdocrfile "quickstart.rst") # (find-jsonrpcdoc "quickstart") # (find-jsonrpcfile "jsonrpc/") ##### # # jsonrpc # 2024dec24 # ##### # «jsonrpc» (to ".jsonrpc") # (find-node "(elisp)JSONRPC Overview") # (find-angg "JSONRPC/quickstart-server.py") # https://www.youtube.com/watch?v=u7DW78ng9Cg # (find-youtubedl-links "/tmp/" nil "u7DW78ng9Cg" nil "{stem}") # (find-youtubedl-links "/tmp/" "00_-_Why_You_Want_Programmable_Tools" "u7DW78ng9Cg" ".webm" "wywp") # (code-video "wywpvideo" "/tmp/00_-_Why_You_Want_Programmable_Tools-u7DW78ng9Cg.webm") # (find-wywpvideo "0:00") # (find-wywpvideo "2:21" "jsonrpc") <edrx> ,jsonrpc <fsbot> fast-lsp: [0] lsp-booster (works with eglot and lsp-mode) https://github.com/blahgeek/emacs-lsp-booster <fsbot> [1] lsp-booster for eglot: https://github.com/jdtsmith/eglot-booster <fsbot> [2] an unmaintained emacs-fork of lsp-mode-community supporting non-blocking jsonrpc https://github.com/emacs-lsp/emacs <fsbot> [3] for eglot, see (info "(eglot) Performance") (edrx) # (find-pip3-links "json-rpc") # (find-pip3-links "werkzeug") # https://json-rpc.readthedocs.io/en/latest/quickstart.html#integration # (find-fline "/tmp/jsonrpc-server.py") # (find-fline "/tmp/jsonrpc-client.py") # (find-angg "JSONRPC/quickstart-client.py") ##### # # luarocks # 2025mar02 # ##### # «luarocks» (to ".luarocks") # (find-luarocks-links "json") # (find-luarocks-links "lua-json-rpc") # (find-sh "luarocks search json") # (find-sh "luarocks --lua-version 5.1 search json") api7-dkjson busted-jsonl dev-roshangeorge-ljsonschema dkjson dromozoa-json hx-lua-simdjson json-logic-lua json-lua json-rock json-rpc json-threat-protection json.lua json2lua json4lua jsonnet jsonpath jsonrpc4lua jsonschema jsonschema-gitless jsonschema-mocker kong-plugin-json-threat-protection kong-plugin-route-by-jsonrpc-method ljsonschema lua-cjson lua-cjson-219 lua-cjson-ol lua-cjson2 lua-json lua-jsonpatch lua-laxjson lua-ljson lua-resty-jsonrpc-batch lua-resty-libcjson lua-resty-ljsonschema lua-resty-prettycjson lua-simdjson lua-ubjson lua2json lua_json luajson luajson lunajson lusty-json moonjson ngxjsonform org.conman.parsers.json org.conman.parsers.jsons rapidjson raven-lua-rjson rjson rsjson rxi-json rxi-json-lua s3-cjson2 simple-lua-json slowjson test-xml-json tree-sitter-hjson tree-sitter-json tree-sitter-json5 tree-sitter-jsonc tree-sitter-jsonnet wtf-action-json_response xml-json yyjson https://luarocks.org/modules/al3x/jsonrpc4lua https://github.com/pdxmeshnet/jsonrpc4lua/ https://github.com/craigmj/json4lua https://luarocks.org/modules/mosasiru/lua-resty-jsonrpc-batch https://realtimelogic.com/ba/doc/en/lua/json-rpc.html <- has an example https://gitlab.kuleuven.be/u0129795/lua-json-rpc <- has an example # (find-git-links "https://gitlab.kuleuven.be/u0129795/lua-json-rpc" "luajsonrpc") # (code-c-d "luajsonrpc" "~/usrc/lua-json-rpc/") # (find-luajsonrpcfile "") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) rm -Rfv ~/usrc/lua-json-rpc/ cd ~/usrc/ git clone https://gitlab.kuleuven.be/u0129795/lua-json-rpc cd ~/usrc/lua-json-rpc/ luarocks make --local /home/edrx/usrc/lua-json-rpc(edrx:sc)# luarocks make --local Missing dependencies for lua-jsonrpc 0.0.1-1: luajson >= 1.3.4 (not installed) lualogging >= 1.3.0 (not installed) lua-jsonrpc 0.0.1-1 depends on lua >= 5.2 (5.4-1 provided by VM: success) lua-jsonrpc 0.0.1-1 depends on luajson >= 1.3.4 (not installed) Installing https://luarocks.org/luajson-1.3.4-1.src.rock Missing dependencies for luajson 1.3.4-1: lpeg >= 0.8.1 (not installed) luajson 1.3.4-1 depends on lua >= 5.1 (5.4-1 provided by VM: success) luajson 1.3.4-1 depends on lpeg >= 0.8.1 (not installed) Installing https://luarocks.org/lpeg-1.1.0-2.src.rock Error: LuaRocks dev bug (please report at https://github.com/luarocks/luarocks/issues). Arch.: linux-x86_64 /usr/local/share/lua/5.4/luarocks/fetch.lua:139: attempt to concatenate a nil value (local 'name') stack traceback: /usr/local/share/lua/5.4/luarocks/fetch.lua:139: in upvalue 'download_with_mirrors' /usr/local/share/lua/5.4/luarocks/fetch.lua:196: in function 'luarocks.fetch.fetch_url' /usr/local/share/lua/5.4/luarocks/fetch.lua:85: in function 'luarocks.fetch.fetch_caching' /usr/local/share/lua/5.4/luarocks/fetch.lua:243: in function 'luarocks.fetch.fetch_url_at_temp_dir' /usr/local/share/lua/5.4/luarocks/fetch.lua:347: in function 'luarocks.fetch.fetch_and_unpack_rock' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:66: in upvalue 'build_rock' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:125: in upvalue 'do_build' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:171: in function 'luarocks.cmd.build.command' (...tail calls...) /usr/local/share/lua/5.4/luarocks/deps.lua:237: in function 'luarocks.deps.fulfill_dependency' /usr/local/share/lua/5.4/luarocks/deps.lua:332: in function 'luarocks.deps.fulfill_dependencies' (...tail calls...) /usr/local/share/lua/5.4/luarocks/build.lua:404: in function 'luarocks.build.build_rockspec' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:82: in upvalue 'build_rock' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:125: in upvalue 'do_build' /usr/local/share/lua/5.4/luarocks/cmd/build.lua:171: in function 'luarocks.cmd.build.command' (...tail calls...) /usr/local/share/lua/5.4/luarocks/deps.lua:237: in function 'luarocks.deps.fulfill_dependency' /usr/local/share/lua/5.4/luarocks/deps.lua:332: in function 'luarocks.deps.fulfill_dependencies' (...tail calls...) /usr/local/share/lua/5.4/luarocks/build.lua:404: in function 'luarocks.build.build_rockspec' /usr/local/share/lua/5.4/luarocks/cmd/make.lua:144: in function 'luarocks.cmd.make.command' (...tail calls...) [C]: in function 'xpcall' /usr/local/share/lua/5.4/luarocks/cmd.lua:794: in function 'luarocks.cmd.run_command' /usr/local/bin/luarocks:38: in main chunk [C]: in ? /home/edrx/usrc/lua-json-rpc(edrx:sc)# https://json-rpc.readthedocs.io/en/latest/quickstart.html https://pypi.org/project/python-jsonrpc-server/ https://www.reddit.com/r/emacs/comments/r9r8w6/example_usage_of_jsonrpcel/ https://github.com/search?q=package-requires+jsonrpc+language%3A%22Emacs+Lisp%22&type=code # (find-luarocks-links "") # Local Variables: # coding: utf-8-unix # End: