Skip to content

Instantly share code, notes, and snippets.

@alprde
alprde / gpu-passthrough-omen-cachyos.md
Created May 29, 2025 07:12
OMEN 16-wf0015nt + CachyOS için GPU Passthrough Rehberi

GPU Passthrough Rehberi - OMEN 16-wf0015nt + CachyOS (MUX + Dual GPU)

Bu rehber, OMEN by HP 16-wf0015nt dizüstü bilgisayarda CachyOS kullanarak NVIDIA RTX 4070 dGPU'yu sanal makineye (VM) paslamak için ihtiyaç duyulan tüm adımları tek sayfada özetler.

🔧 Sistem Gereksinimleri

VT-d / IOMMU destekli BIOS (Etkinleştirilmeli)

NVIDIA RTX 4070 Laptop GPU

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
# Always respond in Turkish.
# Laravel projelerini devilbox konteynırında çalıştırıyorum. Eğer bulunduğun proje bir laravel projesiyse yapma gerekenler sırasıyla şunlardır:(Zorunlu)
(önemli not: laravel projelerinde terminal kodlarının hepsini ayrı satırlarda çalıştır. )
1. konteynırda olup olmadığını kontrol et. bunu terminalde kullanıcı olarak "devilbox@" bu ibareyi kontrol ederek anlayabilirsin.
2. Eğer konteynırda değilsen "dsl" aliasını yazıp çalıştır. tebrikler konteynırdasın.
3. konteynır içindeyken projenin klasörünün içinde olup olmadığını kontrol et. eğer değilsen projenin klasörüne git.
4. Proje klasöründe olduğundan emin olduktan sonra artisan koutlarını kullanabilirsin.
# Terminalde ki sorulara cevap ver.
@alprde
alprde / gist:97ba6505a50e9df8744a7f27ab703760
Created April 24, 2025 17:56
Create filament resource
php artisan make:filament-resource Customer --generate --soft-deletes --view
@alprde
alprde / gist:5374830a9d49f09fee9431837fd94774
Created April 24, 2025 11:44
Macos hasarlı uygulama hatası çözümü
Açık kurulum zarar görmüş ve açılamıyor, diski çıkarmalısınız. Çözüm
1. Open the terminal, enter " sudo spctl --global-disable ", press Enter, enter the password (the password is not displayed), press Enter.
2. Continue to enter " xattr -cr " in the terminal, add a space key after the code, and press Enter.
@alprde
alprde / gist:94d931e62cbe13dacc8abdb2ea674026
Created April 10, 2025 11:59
Macos Microsoft Autoupdate Remove
https://dev.to/manojspace/how-to-remove-microsoft-office-autoupdate-completely-from-macos-2ca1
sudo rm -rf /Library/Application\ Support/Microsoft/MAU2.0
sudo rm -rf /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo rm -rf /Library/LaunchDaemons/com.microsoft.autoupdate.helper.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper
@alprde
alprde / gist:b968490bce2e2bf7c46fea8b288568bf
Created November 1, 2024 22:28
Arch linux add ssl certificate
sudo trust anchor --store ~/my-ca-cert.crt
@alprde
alprde / gist:7a066a0863e8f74adf66fdf8f9a362eb
Last active November 1, 2024 22:25
Portainer docker compose
version: '3.8'
services:
portainer:
image: portainer/portainer-ce
restart: always
container_name: portainer
ports:
- "8000:8000"
- "9000:9000"
volumes:
@alprde
alprde / gist:4c5f01a1f2298193ace3a705291c7231
Created November 1, 2024 22:16
Linux auto mount ntfs drive
sudo pacman -S ntfs-3g
lsblk
sudo mkdir -p /mnt/ntfsdisk
sudo blkid
sudo nano /etc/fstab
@alprde
alprde / gist:b4fb24109f3f6f2a9bdb4dff07140300
Created August 28, 2024 10:02
Docker compose nextcloud clear occ cache
docker exec -u 33 -it nextcloud-yeni-app-1 php occ files:cleanup