Skip to content

Instantly share code, notes, and snippets.

View khattaksd's full-sized avatar
🖐️
Talk is cheap. Show me the code - Linus Torvalds

Salman Khattak khattaksd

🖐️
Talk is cheap. Show me the code - Linus Torvalds
  • Serendevity Inc.
  • Toronto, Ontario, Canada
  • 01:06 (UTC -04:00)
View GitHub Profile
@khattaksd
khattaksd / gist:5b7469193824d8e3c4315b3c649a0433
Created December 22, 2024 13:26
linux-mint-fresh-install
#!/bin/bash
# add fish ppa
sudo apt-add-repository -y ppa:fish-shell/release-3
sudo mkdir -p --mode=0755 /usr/share/keyrings
# vscode:
curl -fsSL "https://packages.microsoft.com/keys/microsoft.asc" | gpg --dearmor |\
@khattaksd
khattaksd / fixNamespaces.php
Created November 23, 2024 19:58
PHP Script to fix namespaces in PHP files based on directory structure, with an option to ignore specific folders.
<?php
/**
* Script to fix namespaces in PHP files based on directory structure,
* with an option to ignore specific folders.
* How It Works:
* Ignored Folders:
* The $ignoredFolders array contains the names of folders to be skipped.
* The script checks if the current directory matches one of the ignored folder names and skips processing if it does.
* Customizable:
@khattaksd
khattaksd / seed.sql
Created September 22, 2023 00:19
Supabase Seed Users for local development & testing
-- supabase/seed.sql
--
-- create test users
INSERT INTO
auth.users (
instance_id,
id,
aud,
role,
email,