Skip to content

Instantly share code, notes, and snippets.

View al3rez's full-sized avatar

Alireza Bashiri al3rez

View GitHub Profile

Build a designer-portfolio landing page in React + Tailwind v4 + Framer Motion + @react-three/drei.

HERO

@al3rez
al3rez / .wezterm-equalize.lua
Created April 1, 2026 17:02
WezTerm pane equalization (BUG FIX) - Fork of https://gist.github.com/curbol/8347b6726b0d988e94cf080f7eacabc0 Fixes: - Use near_pane instead of far_pane for boundary verification - near_pane gives the adjacent pane across the split (leftmost of right group, rightmost of left group for vsplit) - This ensures the probe correctly identifies which s…
local wezterm = require("wezterm")
local action = wezterm.action
-- Equalize all panes: each column gets equal width, each row within a column gets
-- equal height. Weights are column/row group counts so mixed split orientations
-- produce the expected N-ary equal-split layout.
--
-- WezTerm's AdjustPaneSize targets the nearest ancestor split in the internal tree,
-- which may differ from our reconstructed tree (multiple binary trees produce the same
-- pixel layout). We probe with +1 adjustments to discover which boundary each pane
@al3rez
al3rez / wezterm-equalize-panes.lua
Created April 1, 2026 16:56 — forked from curbol/wezterm-equalize-panes.lua
WezTerm pane equalization — probe-and-discover algorithm that handles arbitrary split layouts
local wezterm = require("wezterm")
local action = wezterm.action
-- Equalize all panes: each column gets equal width, each row within a column gets
-- equal height. Weights are column/row group counts so mixed split orientations
-- produce the expected N-ary equal-split layout.
--
-- WezTerm's AdjustPaneSize targets the nearest ancestor split in the internal tree,
-- which may differ from our reconstructed tree (multiple binary trees produce the same
-- pixel layout). We probe with +1 adjustments to discover which boundary each pane
@al3rez
al3rez / config.kdl
Created February 13, 2026 06:11
Zellij config
//
// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /Users/al3rez/.config/zellij/config.kdl.bak
//
keybinds clear-defaults=true {
locked {
bind "Ctrl g" { SwitchToMode "normal"; }
}
pane {
bind "left" { MoveFocus "left"; }

Security Checklist (What can be done in CursorAI & software-level not infrastructure!)

Configuration Security

  • Detect secrets in code
  • Identify secrets committed to version control
  • Flag hardcoded credentials

Authentication & Authorization

  • Identify missing authentication checks
  • Detect improper authorization patterns
{
"editor.fontFamily": "Inconsolata Nerd Font",
"editor.fontSize": 16,
"editor.scrollbar.horizontal": "hidden",
"editor.scrollbar.vertical": "hidden",
"editor.lineHeight": 1,
"terminal.integrated.lineHeight": 1,
"terminal.integrated.fontSize": 16,
// Editor appearance
"editor.lineNumbers": "off",
{
"editor.fontFamily": "Pragmata Pro",
"editor.lineHeight": 1.2,
"terminal.integrated.fontSize": 14,
"editor.fontSize": 14,
"editor.glyphMargin": false,
"editor.folding": false,
"editor.stickyScroll.enabled": false,
"editor.guides.indentation": false,
"editor.scrollbar.horizontal": "hidden",
local wezterm = require("wezterm")
return {
font = wezterm.font_with_fallback({
{
family = "Monolisa Nerd Font",
weight = 500,
harfbuzz_features = { -- https://www.monolisa.dev/playground
"zero=1", -- slashed zero
"ss01=1", -- normal asterisk *
@al3rez
al3rez / linux-setup.sh
Created April 26, 2024 20:22 — forked from dhh/linux-setup.sh
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl docker.io \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@al3rez
al3rez / clear-db.ts
Created April 20, 2024 19:24 — forked from rphlmr/clear-db.ts
Drizzle snippets
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406
import { sql } from "drizzle-orm";
const clearDb = async (): Promise<void> => {
const query = sql<string>`SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_type = 'BASE TABLE';
`;