Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@palaniraja
palaniraja / Readme.md
Last active June 29, 2025 01:30
vibecoding Sudoku for M5PaperS3 with static puzzle

m5papers3-sudoku

/**
{
"api":1,
"name":"Base64 to bytebuffer",
"description":"Base64 - ByteBuffer",
"author":"palani",
"icon":"01.square.fill",
"tags":"bytebuffer, base64"
}
**/
@palaniraja
palaniraja / dendron.code-snippets
Created May 1, 2025 15:16
vault/.vscode/dendron.code-snippets
{
"tag": {
"prefix": "#",
"scope": "markdown,yaml",
"body": "[[#${1:my-tag}|tag.${1}]]",
"description": "tag"
},
"date": {
"prefix": "mdate",
"scope": "markdown,yaml",
@palaniraja
palaniraja / dap.lua
Last active March 18, 2025 01:25
neovim dap custom keybinding to match lldb pref
-- dap custom shortcuts
-- https://github.com/mfussenegger/dotfiles/blob/e7abb9a13f8fb3075704ed703dd973ecf3502cc3/vim/.config/nvim/lua/me/dap.lua#L64-L75
return {
{
"mfussenegger/nvim-dap",
config = function()
-- working version
local dap = require('dap')
@palaniraja
palaniraja / config.yml
Last active June 13, 2025 17:41
lazygit config.yml - my lazygit conf ('~/Library/Application Support/lazygit/config.yml')
gui:
expandFocusedSidePanel: true
git:
paging:
# colorArg: always
# pager: diff-so-fancy
pager: delta --dark --paging=never -n --syntax-theme "everforest-friendly" #-s -n --syntax-theme "1337" --diff-so-fancy --diff-highlight
# externalDiffCommand: "difft --color=always --display=inline"
# useConfig: true
@palaniraja
palaniraja / .gitconfig
Last active March 18, 2025 01:18
~/.gitconfig
[user]
name =
email =
[includeIf "gitdir:~/Desktop/src/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/Desktop/src/try/"]
path = ~/.gitconfig-personal
@palaniraja
palaniraja / options.lua
Created February 20, 2025 16:32
nvim golang ~/.config/nvim/lua/config/options.lua
-- custom config
-- Disable relativenumber
vim.opt.relativenumber = false
-- Disable line numbers in terminal buffers
vim.api.nvim_create_autocmd("TermOpen", {
pattern = "*",
callback = function()
vim.opt_local.number = false
vim.opt_local.relativenumber = false
@palaniraja
palaniraja / Makefile
Last active February 11, 2025 20:21
cgo sample
CC := clang
CXX := clang++
CFLAGS := -g -O0 -Wall -fPIC -std=c11
CXXFLAGS := -g -O0 -Wall -fPIC -std=c++17
# static .a lib
# LDFLAGS := -g
# GO_BUILD_FLAGS := -gcflags="all=-N -l" -ldflags="-extldflags '$(LDFLAGS) -lc++'"
#shared .so/.dylib
@palaniraja
palaniraja / config
Created January 2, 2025 11:29
ghostty config ~/Library/Application Support/com.mitchellh.ghostty/config
unfocused-split-opacity = 0.4
font-size = 16
window-height = 40
window-width = 100
@palaniraja
palaniraja / Default (OSX).sublime-commands
Created October 25, 2024 23:34
sublime shortcut for converting epoch seconds ~/Library/Application Support/Sublime Text/Packages/User/
[
{
"caption": "Epoch Converter",
"command": "epoch_converter"
}
]