Writing

Notes from the terminal

Short write-ups of problems I solved, so you don't have to solve them again.

Subscribe with RSS

  1. · 8 min read

    Accepting online payments in Libya: GPay, RunPay, and Moamalat

    Stripe and PayPal won't take a Libyan merchant, so my print-on-demand shop runs on local gateways. What GPay, RunPay, and Moamalat are like to integrate, and the expiry bug that set off my payment alerts.

    • #payments
    • #libya
    • #typescript
  2. · 1 min read

    Using casts in Laravel traits

    Laravel doesn't merge a trait's $casts property into the model. Use an initializable trait and mergeCasts() instead.

    • #laravel
    • #php
    • #eloquent
  3. · 2 min read

    Sharing SSH keys between Windows and WSL2

    Share SSH keys between Windows and WSL2 by creating a symlink between their .ssh folders and adjusting file permissions for seamless access.

    • #ssh
    • #wsl
    • #windows
    • #linux