Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile
@muath-ye
muath-ye / BragDoc.md
Last active June 1, 2023 09:20
@WatheqAlshowaiter template for brag document

Brag document / weekly professional journal

Note: I advice you to write every thursday (at the end of the workday week)

week 23 (4 June, 2023)

Courses

@muath-ye
muath-ye / wh-webhook-request.json
Created May 26, 2023 18:31
A whatsapp webhook request example
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "*****************",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
@muath-ye
muath-ye / vite.config.js
Created April 25, 2023 13:43
Fix Laravel vite config on shared hosting
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
],
@muath-ye
muath-ye / location-picker.html
Created April 23, 2023 21:42
A step-by-step tutorial explaining how to use the Google Maps JavaScript API to display a map and allow the user to choose a location.
<!DOCTYPE html>
<html>
<head>
<title>Choose Your Location</title>
</head>
<body>
<!-- A div to contain the map -->
<div id="map" style="height: 400px; width: 100%;"></div>
@muath-ye
muath-ye / .bashrc
Last active November 21, 2023 05:50
Put it here C:\Users\YourName\
# Git
alias gi="git init"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit -m"
alias gp="git push"
alias gs="git status"
alias gl="git log"
alias gigaa="git init && git add ."
alias gigaagc="git init && git add . && git commit -m"
@muath-ye
muath-ye / laravel-deployment.yml
Created April 11, 2023 23:46
Laravel auto deployment
name: Auto Deployment
on:
push:
branches:
- production
# on: [workflow_dispatch]
jobs:
prepare-servers-connection:
name: "Connecting to: ${{ vars.SERVER_NAME }}"
name: Production Deployment
# on:
# push:
# branches:
# - production
on: [workflow_dispatch]
jobs:
prepare-servers-connection:
name: "Connecting to: ${{ vars.SERVER_NAME }}"
@muath-ye
muath-ye / BitBucket.md
Created April 10, 2023 09:13
Add SSH to Bitbucket for Windows
layout
doc

Add SSH to Bitbucket for Windows

If you have an account on bitbucket.org, this article may help you

Ensure ssh is installed on your Windows by opening Powershell

@muath-ye
muath-ye / ApiException.php
Created April 9, 2023 20:28
Laravel Die and Dump for API development
<?php
namespace App\Exceptions;
use Exception;
// usage
// throw new \App\Exceptions\ApiException('your data goes here')
class ApiException extends Exception
  1. Get node binary (node.exe) from http://nodejs.org/download/
  2. Create the folder where node will reside and move node.exe to it
  3. Download the last zip version of npm from http://nodejs.org/dist/npm
  4. Unpack the zip inside the node folder
  5. Download the last tgz version of npm from http://nodejs.org/dist/npm
  6. Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
  7. Add the the node folder and the packages/bin folder to PATH
  8. On a command prompt execute npm install -g npm to update npm to the latest version

Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.