Skip to content

Instantly share code, notes, and snippets.

View SubhanRaj's full-sized avatar
👨‍🎓
Studying

Subhan Raj SubhanRaj

👨‍🎓
Studying
View GitHub Profile
@SubhanRaj
SubhanRaj / provision-ubuntu-dev.sh
Last active July 14, 2026 08:54
One-shot Ubuntu Desktop dev-box provisioning (PHP 8.4, MariaDB, Node 24, VS Code, Warp, Ollama, Claude Code, Cloudflare toolchain, oh-my-zsh+p10k)
#!/usr/bin/env bash
#
# One-shot dev-box provisioning for Ubuntu Desktop 26.04 LTS.
# Target: fresh AIO (i7-13700 / 32GB) used for pdf-markdown-pipeline dev + OCR engine testing.
#
# Run it, answer the few prompts, walk away. Re-running is safe — every step
# checks "is this already installed/done" before doing anything.
#
# Download + run on a fresh machine (copy-paste this whole block):
#
@SubhanRaj
SubhanRaj / luxignia_inventory_sop.md
Last active July 12, 2026 14:40
Luxignia Home Textiles: AI Prompt & Inventory Management SOP

Luxignia Inventory & Copywriting Prompt (SOP)

Role & Context You are an Expert Inventory Data Manager and Luxury Copywriter for the premium home textiles and furnishings brand, Luxignia. Your task is to analyze product images, basic descriptions, or manufacturer Excel files and generate highly structured, luxurious inventory data ready for import into Billing / POS Softwares, Online eComm Platforms, and Excel.

Core Objective For every product provided, generate specific inventory data points and a premium product description that elevates the Luxignia brand.

  • Standalone Products (Bedsheets, Dohars, Blankets, Quilts): Replace generic manufacturer names with bespoke, luxurious collection names exclusive to Luxignia.
  • Catalogue Fabrics (Curtains, Upholstery): Preserve the manufacturer's collection names and book codes for easy stock pulling, but format the names to sound premium.
@SubhanRaj
SubhanRaj / host-laravel-project-on-hostinger-shared-hosting.md
Last active July 19, 2026 08:59
This gist provides a step by step guide on how to host a Laravel project on Hostinger shared hosting.

This gist provides a step by step guide on how to host a Laravel project on Hostinger shared hosting.

How to host a Laravel project on Hostinger shared hosting

Introduction

When I was looking to deploy a Laravel project on Hostinger shared hosting, I found that there was no proper guide available on the internet. So I decided to write a step-by-step guide on how to host a Laravel project on Hostinger shared hosting. I hope this will help someone who is looking to host a Laravel project on Hostinger shared hosting.

As Hostinger's shared hosting does not provide the same functionalities as a VPS or Dedicated Server, so there are some limitations. However, I have tried to overcome those limitations and make the Laravel project work on Hostinger shared hosting.

What is working

@SubhanRaj
SubhanRaj / Laravel-Mix-Live-Reload.md
Last active April 25, 2024 14:11
This gist provides the steps to enable live reload of a Laravel project using Laravel Mix and BrowserSync.

How to enable Live Reload of a Laravel Project Using Laravel Mix & BrowserSync

You can follow the steps below to enable live reload of a Laravel project using Laravel Mix and BrowserSync.

Important

You need to have Node.js installed on your machine to use Laravel Mix. If you don't have Node.js installed, you can download it from here.

Steps to enable live reload of a Laravel project using Laravel Mix and BrowserSync:

Note: YouTube is serving thumbnails from 2 servers:

  • //img.youtube.com
  • //i.ytimg.com

Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.

  • Player Background Thumbnail (480x360):

@SubhanRaj
SubhanRaj / winget-update-packages.md
Last active December 18, 2023 19:21
Upgrade all Microsoft Windows programs & packages using Winget

Upgrade all Windows Programs & Packages using Winget

Note

Works only in Windows 10 & 11 with Winget

You can check for avaliable software updates using following command

winget update

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@SubhanRaj
SubhanRaj / operator_overloading.cpp
Created September 8, 2021 15:26
C++ program to show Operator Overloading
// C++ program to demonstrate operator overloading
#include <iostream>
using namespace std;
class Kitchen // creating class Kitchen
{
public: // public members of class Kitchen
void breakFast(int b)
@SubhanRaj
SubhanRaj / classes.cpp
Created September 7, 2021 02:34
A simple C++ program to demonstrate how to create Classes, as Objects, Data Members & Member Functions
// C++ program for implementing classes and creating objects
#include <iostream>
using namespace std;
class Employee
{
private:
int a, b, c; // Declaring private variables
@SubhanRaj
SubhanRaj / Linear_Search.c
Created August 29, 2021 05:52
C program to input N numbers and store them in an array. Do a linear search for a given key and report success or failure.
/*
C program to input N numbers and store them in an array.
Do a linear search for a given key and report success or failure.
*/
// By: Priyanshu, Sahil Ali & Subhan Raj
#include <stdio.h>
int main()
{
int num;