Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@palaniraja
palaniraja / Makefile
Last active October 26, 2026 02:28
Gemini screwed up: initial commits create/formats the enc diskimage on start instead of just setup
.DEFAULT_GOAL := help
help:
@echo "=================================================================="
@echo " Immich Vault & Stack Management Makefile"
@echo "=================================================================="
@echo "Available Targets:"
@echo " make start - Unlock vault, mount filesystem, and start Docker stack"
@echo " make stop - Stop Docker stack, unmount, and lock encrypted vault"
@echo " make status - Check Docker container status and vault mount state"
@palaniraja
palaniraja / CompareSTEPs.FCMacro
Last active October 11, 2026 00:31
Freecad macro to diff two step files
import FreeCAD as App
import FreeCADGui as Gui
# colors from HistoryWorkbench addon (RGBA)
Color = tuple[float, float, float, float]
DIFF_FEATURE_TRANSPARENCY: int = 70
ADDED_COLOR: Color = (0.0, 0.5, 0.0, 1.0)
REMOVED_COLOR: Color = (0.9, 0.0, 0.0, 1.0)
@palaniraja
palaniraja / buildgdb.sh
Last active October 6, 2026 21:24
gdb build experiments on mac arm64 (script i was testing with gdb-17.1)
#!/bin/sh
# install additional dependencies
#brew install gmp mpfr libmpc texinfo pkg-config
# clean old config
# make distclean
@palaniraja
palaniraja / init.lua
Last active October 12, 2026 17:11
maki.sh conf
maki.setup({
net = { allowed_private_hosts = { "127.0.0.1:8919" } },
plugins = {
task = { enabled = false },
navigation = { wrap = false },
},
ui = {
splash_animation = false,
mouse_scroll_lines = 5,
tool_output_lines = {
@palaniraja
palaniraja / Makefile
Created September 29, 2026 15:56
Mac app icon generator from SF symbol
.PHONY: icon
icon:
@[ -n "$(SYMBOL)" ] || { echo "usage: make icon SYMBOL=<sf-symbol-name> [COLOR=#RRGGBB]"; exit 2; }
swift scripts/appicon.swift "$(SYMBOL)" app/AppIcon.icns $(COLOR)
@echo "Wrote app/AppIcon.icns from $(SYMBOL)."
[ ! -f app/AppIcon.icns ] || cp app/AppIcon.icns "$(DISTDIR)/<YOURAPP>.app/Contents/Resources/"
@palaniraja
palaniraja / feeder.scad
Created September 9, 2026 20:34
Feeder to use GPI 28-400 compatible bottle
/*
GPI 28-400 inverted bottle hummingbird feeder - revised thread interface
IMPORTANT DIFFERENCE FROM v1:
The female closure bore CLEARS the bottle's thread crest (T dimension),
and an inward helical rib engages between the bottle's external threads.
v1 incorrectly used a near-neck-diameter bore plus a spiral cut.
28-400 reference values (mm):
bottle T max/min : 27.64 / 27.12
@palaniraja
palaniraja / go.mod
Created July 22, 2026 15:48
mini-ginkgo - go test -v
module example.com/mini-ginkgo
go 1.26.1
@palaniraja
palaniraja / startship.toml
Created June 24, 2026 19:30
~/.config/startship.toml
add_newline = true
[directory]
truncation_length = 3
truncate_to_repo=false
[git_status]
ignore_submodules = true
[c]
symbol = "C "
@palaniraja
palaniraja / Lip-N-Groove.py
Last active June 21, 2026 00:53
Lip-N-Groove freecad macro
import FreeCAD as App
import FreeCADGui as Gui
import Part
from PySide import QtWidgets, QtCore
class LipGrooveDialog(QtWidgets.QDialog):
def __init__(self, selected_faces):
super(LipGrooveDialog, self).__init__()
self.selected_faces = selected_faces
self.initUI()
@palaniraja
palaniraja / SideFlexHook.py
Last active June 20, 2026 03:43
Freecad macro to generate Side flexing hook and mate from two selected parallel edges
import FreeCAD as App
import FreeCADGui as Gui
import Part
from FreeCAD import Vector
# Cross-version PySide wrapper to handle old and new FreeCAD environments seamlessly
try:
from PySide6 import QtWidgets, QtCore
except ImportError:
try: