Skip to content

Instantly share code, notes, and snippets.

View abdulwahidgul24085's full-sized avatar
🎯
Focusing

abdulwahidgul abdulwahidgul24085

🎯
Focusing
View GitHub Profile
@abdulwahidgul24085
abdulwahidgul24085 / cheatsheet.md
Created July 27, 2026 12:19
MICRO TEXT EDITOR - CHEATSHEET
Category Shortcut Action
File & General Ctrl + S Save file
Ctrl + Q Quit current tab
Ctrl + O Open a file
Ctrl + E Open command bar
Ctrl + G Open help menu
Ctrl + H Show keybindings help
@abdulwahidgul24085
abdulwahidgul24085 / MX Master 3S Smart Shift Button.md
Last active May 25, 2026 13:19
This guide shows how to use Solaar on Ubuntu 24.04 to remap the Logitech MX Master 3S Smart Shift / scroll-wheel mode button to open the GNOME screenshot interface.

Map Logitech MX Master 3S Smart Shift Button to GNOME Screenshot on Ubuntu 24.04 using Solaar

Goal

Use the Logitech MX Master 3S Smart Shift button, also known as the scroll-wheel mode shift button, to open the GNOME screenshot interface on Ubuntu 24.04.

This setup uses:

  • Solaar
  • A custom Solaar rule
@abdulwahidgul24085
abdulwahidgul24085 / dbeaver-athena-s3-tables.md
Created May 14, 2026 17:10
DBeaver Athena connection setup for Amazon S3 Tables

DBeaver + Athena + Amazon S3 Tables: connection notes

Problem

DBeaver could connect to Amazon Athena, but the database navigator only showed:

AwsDataCatalog.default
@abdulwahidgul24085
abdulwahidgul24085 / GpasteSettings
Created May 14, 2026 15:07
Set up GPaste just like windows 11 clipboard
#!/usr/bin/env bash
set -euo pipefail
echo "Installing GPaste..."
sudo apt update
sudo apt install -y gpaste gnome-shell-extension-gpaste
echo "Configuring GPaste to behave like Windows 11 clipboard..."
@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 August 5, 2026 12:35
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