20250829

my new standard issue for every BashRc is this bash function frv: switch between fzf for files and ripgrep for pattern

 # fzf/ADVANCED.md at master · junegunn/fzf · GitHub https://github.com/junegunn/fzf/blob/master/ADVANCED.md#switching-between-ripgrep-mode-and-fzf-mode-using-a-single-key-binding Ripgrep integration


# Using fzf as interactive Ripgrep launcher

# fzf/ADVANCED.md at master · junegunn/fzf · GitHub https://github.com/junegunn/fzf/blob/master/ADVANCED.md#switching-between-ripgrep-mode-and-fzf-mode-using-a-single-key-binding Ripgrep integration



# Switch between Ripgrep launcher mode (CTRL-R) and fzf filtering mode (CTRL-F)

frv(){

rm -f /tmp/rg-fzf-{r,f}

RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "

INITIAL_QUERY="${*:-}"

fzf --ansi --disabled --query "$INITIAL_QUERY" \

    --bind "start:reload($RG_PREFIX {q})+unbind(ctrl-r)" \

    --bind "change:reload:sleep 0.1; $RG_PREFIX {q} || true" \

    --bind "ctrl-f:unbind(change,ctrl-f)+change-prompt(2. fzf> )+enable-search+rebind(ctrl-r)+transform-query(echo {q} > /tmp/rg-fzf-r; cat /tmp/rg-fzf-f)" \

    --bind "ctrl-r:unbind(ctrl-r)+change-prompt(1. ripgrep> )+disable-search+reload($RG_PREFIX {q} || true)+rebind(change,ctrl-f)+transform-query(echo {q} > /tmp/rg-fzf-f; cat /tmp/rg-fzf-r)" \

    --color "hl:-1:underline,hl+:-1:underline:reverse" \

    --prompt '1. ripgrep> ' \

    --delimiter : \

    --header '╱ CTRL-R (ripgrep mode) ╱ CTRL-F (fzf mode) ╱' \

    --preview 'batcat --color=always {1} --highlight-line {2}' \

    --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \

    --bind 'enter:become(vim {1} +{2})'

}

20250819

Minimally Awesome Todos | Jerod Santo with fzf

https://jerodsanto.net/2010/12/minimally-awesome-todos/

#FuckYeah

#my working version in ~/.bashrc

export TODO=~/.todo
export TODOARCHIVE=~/.todoarchive
function todo() { if [ $# == "0" ]; then cat $TODO; else echo "• $@" >> $TODO; fi }


# 2025-08-19T12:31:17-0700 Tue using fzf for todone selection even lazier


function todone(){
if sel="$(fzf < ~/.todo)"; then
printf '%s %s\n' "$(date -Isec)" "$sel" >> "$TODOARCHIVE"
sed -i -e "\|^$sel\$|d" $TODO;
# no argument in todone ! so no sed -i -e "/$*/d" $TODO;
# else exit with no sed execution
else
        echo "No selection made, nothing archived." >&2
return 1
fi
}

# manage todos
function todofix(){
vim -O ~/.todoarchive ~/.todo
}


20250815

ThinkOnPaper: Reinvent the wheel by playing the telephone game



pen paper thoughts

  • Ask Questions/Prompt self
  • Inversion, always invert - wants/avoidance("Invert, always invert" Charlie Munger https://youtu.be/K_vFpa0v3Wg?si=SS8W-xAkUcdYbPrh think about what to avoid rather than solely focusing on what to achieve ~ German mathematician Carl Gustav Jacobi -  man muss immer umkehren) SimiliarTo Top down and BottomUp viewing for fuller perspective
  • MindMapping
  • Mini-Essays - Beginning, Middle, End summary with supporting evidence and first hand input
  • Eisenhower Important Urgent Matrix
  • Freewrite - spew logos diarrhea
  • Empiricism - scientific method: hypothesis, observations, test, evaluate data
  • Stepwise staging phasing serial work to and back from start to end
  • First principles thinking - dump and chunk, rebuild from foundational elements
I'm still stuck in on EdBoyden's workflow: Boyden, E. S. “How to Think.” Ed Boyden’s Blog. Technology Review. 11/13/07. (http://www.technologyreview.com/blog/boyden/21925/)

ugrep and vim

decent file opening at :copen

from the GroundTruth source and not damn AlSlop ugrep --vimgrep option BS


https://github.com/Genivia/ugrep#vim

add to .vimrc

if executable('ugrep')

    set grepprg=ugrep\ -RInk\ -j\ -u\ --tabs=1\ --ignore-files

    set grepformat=%f:%l:%c:%m,%f+%l+%c+%m,%-G%f\\\|%l\\\|%c\\\|%m

endif



Framework12Laptop: My-So-F*cking-Cute-Linux-Laptop

Shipment and Delivery

Thursday, 8/14/25 Taiwan to Tuesday, 8/12/25 USA

Build and Install

  • i5, 500 GB, 48 GB Ram

WTF

The HDMI expansion card was easy to insert but difficult to remove by sliding off. It was so tight that I nearly ripped off my thumbnail. After the install the heat of the laptop must have softened things up and all expansion cards were ok to slide on and off.

Extras

I slapped on stickers and then some from friends.

LLM

  • ollama > gpt-oss:latest 20b 
  • $ollama run gpt-oss --verbose "<your prompt>" | tee -a ChatLog.txt
The fans go on and the thinking is slow (eval rate 1.5 tokens per second) for MoE gpt-oss so I keep that on a separate tmux window. Just $tail ChatLog.txt for progress, ha!

Software

ollama

:r! cat /var/log/apt/history.log|grep '^CommandLine'|sort -u

cheese curl dateutils ffmpeg fzf gpaste pandoc tmux tree ugrep vim w3m xmlstarlet

more to come...