Skip to content

Instantly share code, notes, and snippets.

@pumicestone
pumicestone / fdiff.sh
Created April 29, 2026 20:01
Fuzzy find to pick files for diff
fdiff() {
fzf -m \
--preview '
files=({+})
if [ ${#files[@]} -eq 2 ]; then
diff -u "${files[0]}" "${files[1]}" | delta --width $(tput cols)
else
bat --color=always {}
fi
' \
@pumicestone
pumicestone / main.c
Created October 3, 2019 11:56
SPI honeywell sensor
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>