Skip to content

Instantly share code, notes, and snippets.

@dipenparmar12
dipenparmar12 / Mailhog_installation.md
Last active April 25, 2024 01:59
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 / 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 March 21, 2024 10:24
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 / laravel-spatie
Last active January 31, 2024 12:58
Laravel spatie cheatsheet, All methods handbook.
<?php
$user->assignRole('admin');
$user->getAllPermissions();
// Adding permissions to a user
$user->givePermissionTo('edit articles');
// Adding permissions via a role
@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 / work-with-multiple-github-accounts.md
Created June 9, 2023 05:01 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@dipenparmar12
dipenparmar12 / .eslintrc.js
Created January 7, 2023 10:56 — forked from onlime/.eslintrc.js
ESLint/Prettier config for Vue 3 in VS Code
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'prettier'
@dipenparmar12
dipenparmar12 / jsTypeValidate.js
Last active October 24, 2022 09:18
JavaScript type check
/*
* Type check
* */
const Assertion = {
isFunction(x) {
return Object.prototype.toString.call(x) === '[object Function]'
},
isString(x) {
return Object.prototype.toString.call(x) === '[object String]'
},
@dipenparmar12
dipenparmar12 / javaScirpt_cheatSheet.js
Last active September 16, 2022 05:35
JavaScript Cheat Seet contains useful code examples on a single page. Not just a PDF!. Find code for JS loops, variables, objects, data types, strings it includes most of part of JS
/////////////////
////--------CoreJS
// alert('hello JS')
// confirm('Are you Ready ?') // true/false
// prompt('what is your best strenth ?') // input
// document.write('DOC EDITED BY JS')
/////////////////
////-------- SomeDefinations
// Loops – Most programming languages allow to work with loops, which help in executing one or more statements up to a desired number of times. Find the "for" and "while" loop syntax in this section.
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);
}