Skip to content

Instantly share code, notes, and snippets.

View abdulwahidgul24085's full-sized avatar
🎯
Focusing

abdulwahidgul abdulwahidgul24085

🎯
Focusing
  • Software Guy
  • Pakistan
View GitHub Profile
@abdulwahidgul24085
abdulwahidgul24085 / pis.zsh
Created May 11, 2026 16:08
pis zsh helper for concise terminal command summaries/code
# Minimal pi command/code helper
pis() {
local model="opencode/big-pickle"
local mode="summary_code"
local system_prompt=""
local query=()
if [[ "$1" == "--help" || "$1" == "-h" || $# -eq 0 ]]; then
cat <<'EOF'
Usage:
@abdulwahidgul24085
abdulwahidgul24085 / CLAUDE.md
Created April 14, 2026 11:55
This claude.md file is inspired by andrej-karpathy-skills and Matt Pocock

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State your assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them - don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.
@abdulwahidgul24085
abdulwahidgul24085 / .bashrc
Last active May 13, 2026 10:45
BASH Lunix Shortcuts
alias updates="sudo apt update && sudo apt list --upgradable && sudo apt -y upgrade && sudo apt autoclean && sudo apt autoremove"
alias t='tmux'
alias tn='tmux new -s' # tn mysession
alias ta='tmux attach -t' # ta mysession
alias tls='tmux ls' # list sessions
alias tk='tmux kill-session -t' # tk mysession
alias tw='tmux new-window' # tw
alias tp='tmux split-window' # tp -h or tp -v
alias size='ls -lht' # Show the size of a file(s)
alias dk='docker' # This is shorthand for docker
@abdulwahidgul24085
abdulwahidgul24085 / read-access.sql
Created April 14, 2025 15:14 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@abdulwahidgul24085
abdulwahidgul24085 / migration.delete
Last active January 26, 2026 15:09
Delete all Migrations in Django project
# Bash script
find . -path "*/migrations/*.py" -not -path "./env/*" -not -name "__init__.py" -delete
# Powershell script
Get-ChildItem -Path . -Recurse -File | Where-Object { $_.FullName -match '\\migrations\\' -and $_.FullName -notmatch '\\env\\' -and $_.Name -ne "__init__.py" } | Remove-Item -Force