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 / index.html
Created July 5, 2021 02:47
A Sample One Page Landing Page Website made purely using HTML & CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
@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;
@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 / 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)

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 / 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

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 / 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:

@SubhanRaj
SubhanRaj / host-laravel-project-on-hostinger-shared-hosting.md
Last active January 14, 2024 11:31
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

Following is working:

  1. Host Laravel 10 Project on Hostinger Shared Hosting