Skip to content

Instantly share code, notes, and snippets.

View heshamelmasry77's full-sized avatar
🦆
Coding

Hesham El Masry heshamelmasry77

🦆
Coding
View GitHub Profile
@heshamelmasry77
heshamelmasry77 / gist:0b3b73a111fbab64cf036f35dc5913ef
Created February 8, 2024 15:17 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

How to Completely Uninstall MongoDB Community on macOS Catalina

From this post on the IntelliPaat forum.

This guide assumes that MongoDB Community was installed on macOS Catalina using brew install mongodb-community@4.2. Refer to MongoDB Manual: Install on MacOS for installation instructions.

Commands to Uninstall

@heshamelmasry77
heshamelmasry77 / gitignore.sh
Created October 19, 2023 18:15 — forked from juliencrn/gitignore.sh
Remove .idea files from PHPStorm with git & .gitignore
# Remove the file from the repository
git rm --cached .idea/
# now update your gitignore file to ignore this folder
echo '.idea' >> .gitignore
# add the .gitignore file
git add .gitignore
git commit -m "Removed .idea files"
@heshamelmasry77
heshamelmasry77 / gup-to-webpack.md
Created August 5, 2021 23:51 — forked from rap2hpoutre/gup-to-webpack.md
Laravel 5.4: migrate from gulp to webpack
  • Create a webpack.mix.js file in root directory:
const { mix } = require('laravel-mix');

mix.js('resources/assets/js/app.js', 'public/js')
  .sass('resources/assets/sass/app.scss', 'public/css');
  
/* Optional: uncomment for bootstrap fonts */
// mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/','public/fonts/bootstrap');
@heshamelmasry77
heshamelmasry77 / gist:b8658edf53be02f88c1ac946ced7b38d
Created July 12, 2021 15:16
Sourcetree on committing issue : .husky/pre-commit: Line 18 yarn: command not found
To Solve this issue you will need to export a path for huskyrc:
echo 'export PATH="/usr/local/bin/:$PATH"' >> ~/.huskyrc
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body>
@heshamelmasry77
heshamelmasry77 / nextjs-hoc-authorization.js
Created May 14, 2020 18:23 — forked from whoisryosuke/nextjs-hoc-authorization.js
ReactJS - NextJS - A HOC for wrapping NextJS pages in an authentication check. Checks for getInitialProps on the child component and runs it, so you still get SSR from the page. Also includes a user agent for Material UI.
import React, {Component} from 'react'
import Router from 'next/router'
import AuthService from './AuthService'
export default function withAuth(AuthComponent) {
const Auth = new AuthService('http://localhost')
return class Authenticated extends Component {
static async getInitialProps(ctx) {
// Ensures material-ui renders the correct css prefixes server-side
@heshamelmasry77
heshamelmasry77 / nextjs-hoc-authorization.js
Created May 14, 2020 18:23 — forked from whoisryosuke/nextjs-hoc-authorization.js
ReactJS - NextJS - A HOC for wrapping NextJS pages in an authentication check. Checks for getInitialProps on the child component and runs it, so you still get SSR from the page. Also includes a user agent for Material UI.
import React, {Component} from 'react'
import Router from 'next/router'
import AuthService from './AuthService'
export default function withAuth(AuthComponent) {
const Auth = new AuthService('http://localhost')
return class Authenticated extends Component {
static async getInitialProps(ctx) {
// Ensures material-ui renders the correct css prefixes server-side
@heshamelmasry77
heshamelmasry77 / nextjs-hoc-authorization.js
Created May 14, 2020 18:23 — forked from whoisryosuke/nextjs-hoc-authorization.js
ReactJS - NextJS - A HOC for wrapping NextJS pages in an authentication check. Checks for getInitialProps on the child component and runs it, so you still get SSR from the page. Also includes a user agent for Material UI.
import React, {Component} from 'react'
import Router from 'next/router'
import AuthService from './AuthService'
export default function withAuth(AuthComponent) {
const Auth = new AuthService('http://localhost')
return class Authenticated extends Component {
static async getInitialProps(ctx) {
// Ensures material-ui renders the correct css prefixes server-side
@heshamelmasry77
heshamelmasry77 / Error: Message failed: 553 Relaying disallowed as @ the solution NodeMail Zoho
Last active August 2, 2023 14:23
Error: Message failed: 553 Relaying disallowed as @ the solution NodeMail Zoho
After searching for more than 6 hours trying to understand what is zoho's mail problem to send emails!
After i red lots lots of there answer with no helpul solution i found the issue was that you need to have the ``` sender ``` option
in your nodemailer option same like email with same sender name and sender email. like this : ``` from: '"senderNameSameLikeTheZohoOne" <emailname@yourwebsite.com>',```
my config :
```
const transporter = nodemailer.createTransport({
service:'Zoho',
host: 'smtp.zoho.com',
port: 465,