Reverse-engineered from
github.copilot-chat-0.37.9extension bundle. Source:~/.vscode/extensions/github.copilot-chat-0.37.9/dist/extension.js
Instantly share code, notes, and snippets.
Roman Liutikov roman01la
🇺🇦
Software Engineer
- Kyiv, Ukraine
- https://romanliutikov.com/
- @roman01la
- @romanliutikov.com
roman01la
/ patch-claude-code.sh
Created
April 2, 2026 21:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
roman01la
/ COPILOT_TOKEN_OPTIMIZATION_SPEC.md
Created
March 9, 2026 08:49
roman01la
/ autochannel.rsc
Last active
February 6, 2026 14:43
MikroTik Metal 52 ac: Stable 2.4 GHz Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/system script add name=auto-channel-boot policy=read,write,test source={
:local iface "wlan1";
:local cand {2412;2437;2462};
:local bestFreq 2437;
:local bestScore 999999;
:global autoChanDone;
:if ([:len $autoChanDone] > 0 && $autoChanDone = true) do={
:log info "[auto-chan] already done, skipping";
:return;
roman01la
/ auto-channel-after-client.rsc
Created
February 6, 2026 11:41
MikroTik Metal 52 ac: Stable 2.4 GHz Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/system script add name=auto-channel-after-client policy=read,write,test source={
:local iface "wlan1";
:local chans {2412;2437;2462};
:local bestFreq 2437;
:local bestScore 999999;
:global autoChanDone;
:if ([:len $autoChanDone] > 0 && $autoChanDone = true) do={
:log info "[auto-chan] already done, skipping";
:return;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "hermes/VM/static_h.h"
#include <stdlib.h>
static uint32_t unit_index;
static inline SHSymbolID *get_symbols(SHUnit *);
static inline SHWritePropertyCacheEntry *get_write_prop_cache(SHUnit *);
static inline SHReadPropertyCacheEntry *get_read_prop_cache(SHUnit *);
static inline SHPrivateNameCacheEntry *get_private_name_cache(SHUnit *);
static const SHSrcLoc s_source_locations[];
static SHNativeFuncInfo s_function_info_table[];
roman01la
/ generate-js-stubs.js
Created
October 30, 2025 21:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node
/*
Generate JavaScript stubs for npm dependencies so Cursive can index them
and provide CLJS completions even when node_modules is excluded.
Usage:
node generate-js-stubs.js --output stubs/js --depth 2 --max-props 200 --include-dev false --filter react*,lodash*
*/
const fs = require("fs");
roman01la
/ decompiled.cljs
Last active
April 28, 2025 08:27
OpenAI o3 decompiles JS generated from cljs sources back into ClojureScript code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns uix.examples
(:require
;; TanStack Router v1 (CJS bundle brought in by Shadow)
["@tanstack/react-router" :as rr
:refer [Link Outlet RouterProvider]]
;; JS <‐‐> CLJ map/keyword conversion
[cljs-bean.core :refer [->clj]]
;; uix "React‐with‐hiccup" runtime
[uix.core :refer [$ defui strict-mode]]
[uix.dom :as dom]))
https://sandbox.learn-modern-clojurescript.com/ architecture overview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns uix.ssr
(:require [uix.core :as uix :refer [$ defui]]
#?(:cljs ["react-slider" :as react.slider])
#?(:clj [uix.dom.server :as dom.server])))
#?(:cljs
(defui js-comp* [{:keys [children]}]
(let [[show? set-show] (uix/use-state false)]
(uix/use-effect
#(set-show true)
roman01la
/ extract_telegram_macos.ipynb
Created
May 31, 2024 15:20
— forked from stek29/extract_telegram_macos.ipynb
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
NewerOlder