Skip to content

Instantly share code, notes, and snippets.

View bhavikg-dev's full-sized avatar
🏠
Working from home

Bhavikkumar Gajera bhavikg-dev

🏠
Working from home
  • Ahmedabad, India
View GitHub Profile
@bhavikg-dev
bhavikg-dev / Install Composer using MAMP's PHP.md
Created November 8, 2022 04:28 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@bhavikg-dev
bhavikg-dev / install_and_configure_sendmail_in_ubuntu.sh
Created June 22, 2022 13:13 — forked from souhaiebtar/install_and_configure_sendmail_in_ubuntu.sh
[configure sendmail on ubuntu to enable sending email] configure sendmail in ubuntu #mail #ubuntu
### RUN
apt install --no-install-recommends sendmail-bin mailutils
mkdir -m 700 /etc/mail/authinfo
### --- START
vim /etc/mail/authinfo/gmail-smtp-auth
## add this to file
AuthInfo: "U:root" "I:USER@gmail.com" "P:GMAIL_USER_PASSWORD"
@bhavikg-dev
bhavikg-dev / .htaccess
Created December 30, 2021 04:57 — forked from alexsasharegan/.htaccess
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
@bhavikg-dev
bhavikg-dev / MimeMailParser.class.php
Created November 26, 2021 14:23 — forked from vyatri/MimeMailParser.class.php
This class allows you to receive and parse email in PHP efficiently and effortlessly.
<?php
require_once('attachment.class.php');
/**
* Fast Mime Mail parser Class using PHP's MailParse Extension
* @author gabe@fijiwebdesign.com
* @url http://www.fijiwebdesign.com/
* @license http://creativecommons.org/licenses/by-sa/3.0/us/
* @version $Id$
@bhavikg-dev
bhavikg-dev / TimeLine.jsx
Created November 23, 2021 03:42 — forked from adrianhajdin/TimeLine.jsx
Portfolio Website - JSM
import React, { useState, useRef, useEffect } from 'react';
import { CarouselButton, CarouselButtonDot, CarouselButtons, CarouselContainer, CarouselItem, CarouselItemImg, CarouselItemText, CarouselItemTitle, CarouselMobileScrollNode } from './TimeLineStyles';
import { Section, SectionDivider, SectionText, SectionTitle } from '../../styles/GlobalComponents';
import { TimeLineData } from '../../constants/constants';
const TOTAL_CAROUSEL_COUNT = TimeLineData.length;
const Timeline = () => {
const [activeItem, setActiveItem] = useState(0);