Skip to content

Instantly share code, notes, and snippets.

@dipenparmar12
dipenparmar12 / git_log.php
Created October 9, 2020 10:28
Generate git log ( author, date, msg and commit hash) array
<?php
// Last 20 commits
$number_of_log = 20
// Change To Repo Directory
chdir("/full/path/to/repo");
// Load Last 10 Git Logs
$git_history = [];
$git_logs = [];
@dipenparmar12
dipenparmar12 / Mailhog_installation.md
Last active August 14, 2025 17:48
Mailhog installation guide (Linux)

Mailhog

Video Tutorial

1. Install GoLang

Install

Mailhog Requires Go 1.4+ to run so we will install GO language in system.

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@dipenparmar12
dipenparmar12 / mailhog-install.md
Created July 24, 2020 14:26 — forked from viktorpetryk/mailhog-install.md
MailHog installation on Ubuntu

Install & Configure MailHog

  1. Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
  1. Make MailHog as a service
@dipenparmar12
dipenparmar12 / phpstrom-installation.md
Last active January 8, 2024 10:13
How to install phpstrom in Linux os

How to install PhpStorm on Linux

Video Tutorial

1. PhpStorm Download Link

Extract .tar.gz Files using Linux Command Line ...

@dipenparmar12
dipenparmar12 / Postman_Installation.md
Last active April 19, 2025 15:08
Postman installation guide linux

How to install Postman on Linux (correct way)

Video Tutorial

1. Postman Download Link

Extract .tar.gz Files using Linux Command Line ...

@dipenparmar12
dipenparmar12 / 1. Install MySQL on Linux.md
Last active April 24, 2024 10:33
How To Install MySQL on Linux

How To Install MySQL on Linux

Video Tutorial

Update the system packages to the latest versions:

@dipenparmar12
dipenparmar12 / php_laravel_installation.md
Last active September 11, 2020 13:10
Install PHP & Laravel on Linux using Composer

How to Install PHP & Laravel on Linux using Composer.

Update the system packages to the latest versions:

sudo apt-add-repository ppa:ondrej/php

sudo apt update && sudo apt upgrade

Installing PHP

@dipenparmar12
dipenparmar12 / firefox_password_export_guide.md
Last active April 18, 2020 09:13
How to print out my passwords in Firefox?

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste DEVT and pause while the list is filtered