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 / google_map_example.html
Created June 22, 2023 12:14
Here is an example of using google maps
<!DOCTYPE html>
<html>
<head>
<title>Google Maps Example</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
#map {
height: 400px;
width: 100%;
@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