Skip to content

Instantly share code, notes, and snippets.

View deepyes02's full-sized avatar
🏠
Working from home

Deepesh Dhakal deepyes02

🏠
Working from home
View GitHub Profile
@deepyes02
deepyes02 / factorial.php
Last active June 4, 2021 15:33
calculate factorial of any given number as long as it is a positive whole number.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Factorial</title>
</head>
<body>
<h2>Find Factorial</h2>
@deepyes02
deepyes02 / create-mysql-user.md
Created September 28, 2021 10:02
Create a new MySQL user and grant privileges.

Configure MYSQL with a new user in Ubuntu WSL

Requirements

I. wsl-2 II. ubuntu III. mysql fresh installation

  1. Login to mysql as root
# wsl
@deepyes02
deepyes02 / gist:fe1f348813a2e10f4b54462dfa3ff8ad
Last active March 2, 2022 07:12
wp_engine_git_setup_README.md
Lists (Ordered Lists and Unordered Lists)
Lists are made by using indentation and a beginning-of-line marker to indicate a list item. For example, unordered lists are made like this:
* One item
* Another item
* A sub-item
* A deeper item
* Back in sub-item land
* And back at the main level
Unordered lists can use an asterisk (*), plus (+), or minus (-) to indicate each list item.
@deepyes02
deepyes02 / linuxcommands.md
Last active May 18, 2022 03:02
Important Linux commands

Important Linux Commands

  1. ssh connection with key ssh -i ~/.ssh/wpengine user@ipaddress

  2. My Sql Dump

mysqldump -u dev3 -p database_name > dumpname.sql

  1. show file size