Skip to content

Instantly share code, notes, and snippets.

@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 / Postman_Installation.md
Last active October 19, 2024 18:41
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 / 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 / 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

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_installation.md
Last active August 9, 2024 10:13
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.

@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 = [];
const winston = require('winston');
const { format } = require('winston');
const appRoot = require('app-root-path');
const config = require('./config');
const printf = (info) => {
if (typeof info.message === 'object') {
// eslint-disable-next-line no-param-reassign
info.message = JSON.stringify(info.message, null, 3);
}

Path subl /etc/nginx/sites-available/default

Restart sudo systemctl reload nginx && sudo nginx -s reload && sudo nginx -t

URL http://localhost/dev/