Skip to content

Instantly share code, notes, and snippets.

View mr-chetan's full-sized avatar
🏠
Working from home

Chetan mr-chetan

🏠
Working from home
View GitHub Profile
@mr-chetan
mr-chetan / example-virtual-host.ssl.test.conf
Created September 15, 2023 17:01 — forked from ankurk91/example-virtual-host.ssl.test.conf
Sample virtual host .conf file for Apache2 on Ubuntu
# This to be used when you need to implement SSL
# Make sure that apache mod_ssl is on
# You can generate self signed certificates for development
# http://www.selfsignedcertificate.com/
<VirtualHost *:443>
ServerName yourapp.test
#ServerAlias www.yourapp.test
@mr-chetan
mr-chetan / dnsmasq.md
Created September 15, 2023 17:01 — forked from ankurk91/dnsmasq.md
DNSmasq on Ubuntu 18/20

DNSmasq wildcard on Ubuntu 18/20

  • Install dnsmasq
sudo apt install -y dnsmasq
sudo apt install -y resolvconf
  • 💡 The dnsmasq service will fail to start, you can ignore those errors for timebeing
  • Disable the default systemd-resolved service
@mr-chetan
mr-chetan / git-fetch-all.sh
Last active May 8, 2024 16:50
This script is use to fetch all the branches from all the repositories in the current directory
# !/bin/bash
# shell script text colors
BLACK='\033[0;30m'
RED='\033[0;31m'
GREEN='\033[0;32m'
BROWN='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
@RealMrHex
RealMrHex / WireServiceProvider.php
Created January 18, 2023 21:35
WireServiceProvider File
<?php
namespace Modules\Wire\Providers;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Livewire\Component;
use Livewire\Livewire;
use Modules\Wire\Console\MakeCommand;
@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active May 7, 2026 02:54
Ubuntu 22/24 - PHP development (php 7.4 / 8.4, nginx)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu Server
export DEBIAN_FRONTEND=noninteractive
echo -e "\e[96m Adding php PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/php