🧵 tvibe: a tmux session per project folder

On 21 September Mistral announced that GLM 5.3 would be served on its own infrastructure, and that tipped me off Claude Code and onto Vibe. The model is the reason I switched, but the habit that stuck is a small function I wrote the same week. An agent that works for ten minutes on its own is a different animal from a REPL you type into. The session now outlives the terminal you started it from, and if the terminal dies — SSH dropped, lid closed, train through a tunnel — the work should not die with it. tvibe is the four-line answer: ...

September 25, 2026 · 4 min · 670 words · ticapix

🔆 Blink LED on the STM32F103C8T6

I just ordered one of those cheap 4USD STM32F103 boards from ebay and a JTAG probe. It’s labeled STM32FxCxT6 Board V5.02 150118 As always, the price is as light as the documentation, but eventually digging the WWW you find interesting things. ...

July 12, 2015 · 2 min · 258 words · ticapix

📊 Adding Code Coverage to your C++ project

For that example, I’ll use one of my GitHub projects arduino-toolbox, Travis-CI and Coveralls but the command lines will be exactly the same for any other setup. Since the project is using CMake, the following commands could go inside an add_custom_target rule in CMakeLists.txt Adding C++ coverage flag Add --coverage to your CFLAGS or CXXFLAGS. With CMake for C++, it gives you: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") # debug, no optimisation set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") # enabling coverage Replace CMAKE_CXX_FLAGS by CMAKE_C_FLAGS for a C project. ...

January 7, 2015 · 2 min · 329 words · ticapix

💡 Blync 2: driving it from the terminal

Following on from the first part of the Blync hack, I want to be able to control the color from a terminal. Let’s create a simple protocol Command Input in byte Output in byte Default mode 0..7: 0 (AUTO) no output Get current RGB value 0..7: 1 (GET) 0..7: Red as [0..255] 8..15: Green as [0..255] 16..23: Blue as [0..255] Set RGB value 0..7: 2 (SET) 8..15: Red as [0..255] 16..23: Green as [0..255] 24..31: Blue as [0..255] 0..7: 1 (ACK) Here is the demo code in Python using pyserial. ...

March 5, 2014 · 1 min · 143 words · ticapix

🎛️ Blync 1: reverse-engineering the USB cube

There is a funny little USB gadget called the Blync identified by VID: 0x1130, PID: 0x0001. It’s a glowing RGB cube, but it has two defects for me: the driver is only available for Windows only 7 colors are available Let’s fix it. Software hack That’s the easy part. Plug your Blync under Windows running in a virtual machine. Start Wireshark under the Linux host Dump USB packets Think Replay packets in Python And Voilà: https://github.com/ticapix/blynux ...

March 3, 2014 · 3 min · 521 words · ticapix

✅ Pretty Check

Code #!/bin/sh function prettycheck { local TPUT='tput' local RED='1' local GREEN='2' local BLUE='4' #man 5 terminfo [ ! -f $(which $TPUT) ] && TPUT=true cmd="$@" echo "$> $cmd" $TPUT cuf $((`$TPUT cols` - 8)) # move the end-of-line minus 8 cols $TPUT cuu 1 # move on line up msgerr=$($cmd 2>&1 1> /dev/null) if [ "$?" -ne 0 ]; then $TPUT setaf $RED # change front color echo "[FAILED]" $TPUT setaf $BLUE # change front color echo "$msgerr" else $TPUT setaf $GREEN # change front color echo "[ OK ]" fi $TPUT reset } Demo

March 3, 2013 · 1 min · 95 words · ticapix