Skip to content

Instantly share code, notes, and snippets.

View bew's full-sized avatar
😎
https://nohello.net

Benoit de Chezelles bew

😎
https://nohello.net
View GitHub Profile
@bew
bew / demo-reload-toast.sh
Created October 5, 2026 06:15
Demo for PR# - Opencode load & live-reload toast with numeric diffs for agents/skills/commands/configs...
#!/usr/bin/env bash
# Drive a target opencode config directory through reload-triggering edits so a
# separately running opencode instance shows the reload toasts.
#
# The script does not start opencode itself: point opencode at the same config
# directory and watch. It seeds baseline files, then keeps applying a mix of
# single-source edits, multi-source groups, and multi-item changes in a loop
# until stopped with Ctrl-C.
#
@bew
bew / NOTES opencode2 frictions & ideas 👀.txt
Last active October 4, 2026 04:21
Feedbacks / frictions (+ some ideas/wishes) on opencode v2
BAD++: When I load opencode2 with a cli.jsonc it works (and its options are correctly respected)
UNTIL I attempt to save the cli.jsonc again while the opencode2 instance is running, at which
point the entire content is replaced with the default config.. (loosing all my personal config 😱)
OPENED: https://github.com/anomalyco/opencode/pull/53031
TODO: follow-up PR for timing issue (editor writes may not be atomic)
BAD: shell command output is 'muted'
AND there is no way to override that color in e.g. a custom colorscheme
let
nixvim = import (builtins.fetchGit {
url = "https://github.com/nix-community/nixvim";
ref = "nixos-24.11";
});
makeNixvim = nixvim.outputs.legacyPackages.${builtins.currentSystem}.makeNixvim;
nvim = makeNixvim {
colorschemes.gruvbox.enable = true;
};
@bew
bew / 0_Powershell-Testing-Utils.ps1
Created January 17, 2024 18:21
Set of 'package manager' like functions to help setup a powershell testing env
# This module defines helper functions to help with local/CI testing PowerShell code,
# like checking pwsh version, installing up necessary modules..
function Assert-PowerShellVersion {
param(
[Parameter(Mandatory)]
[string]$MinimumVersion
)
if ($PSVersionTable.PSVersion -le [System.Version]$MinimumVersion) {
throw "PowerShell minimum version $MinimumVersion is required, current version is: $($PSVersionTable.PSVersion)"
@bew
bew / Intro to reactive programming.md
Last active December 27, 2021 04:38
Mirror of https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 (soo good intro to reactive programming)

The introduction to Reactive Programming you've been missing

(by @andrestaltz)


This tutorial as a series of videos

If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.

NOTE (@bew in 2021): (link updated) This video series mentions that it's outdated, and I can't find the new one (all I get is 404 pages..).

@bew
bew / introrx.md
Created December 27, 2021 04:29 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@bew
bew / Wezterm changelog, formatted.md
Last active October 9, 2021 20:23
Suggestion to improve wezterm's changelog for readability
{
description = "virtual environments";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05";
inputs.devshell.url = "github:numtide/devshell";
outputs = { self, devshell, nixpkgs }: let
system = "x86_64-linux"; # We only care about a single system
in {
devShell.${system} = let
@bew
bew / Unicode 14.0.0 - Names Database - content.txt
Last active July 3, 2021 17:56
All unicode 14 char names!
; charset=UTF-8
@@@ The Unicode Standard 14.0.0
@@@+ U14M210503.lst
Unicode 14.0.0 names list, ninth delta.
Repertoire synched with UnicodeData-14.0.0d9.txt.
Corrected typo in subhead at 131A3.
Added subhead for Carrier at 15C4.
Updated annotation for 02B9.
Retargeted annotation for 08FB.
Updated annotations for 06C5 and 088E.