Skip to content

Instantly share code, notes, and snippets.

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

Zeyad Etman zeyadetman

🏠
Working from home
View GitHub Profile
@zeyadetman
zeyadetman / reactjs.code-snippets
Created January 24, 2024 03:53
ReactJS Code Snippets
{
"React Functional Component with Props": {
"prefix": "rfcp",
"body": [
"interface $1Props {}",
"",
"export const $1 = ({}: $1Props) => {",
" return $2;",
"};"
]

Welcome

TypeScript, Understanding the code you write

    :-====-:
   -+-. .:-+**-
 += =+:...-*+
@zeyadetman
zeyadetman / google-meet-cli.md
Last active November 10, 2022 09:35
Create google meet links directly from terminal, for personal and work usage

Meet

Create google meet links directly from terminal, for personal and work usage

meet
meet -w       # -w work email

Installation

@zeyadetman
zeyadetman / handle-notion-database.md
Last active September 28, 2022 19:03
Export nested notion databases to GitHub repo using typescript

Hey 👋 This is the function I've created for exporting specific notion database to GitHub Repo in my telegram bot (full code) The function supports nested databases.

Database example. image

ctx is used for telegram bot you can ignore it.

const handleDatabases = async (
#!bin/bash
pushit () {
echo "Getting data...";
jira issue list -a"Zeyad Etman" -s"IN PROGRESS";
echo "\nPlease enter ticket id: "
read id;
echo "\n"
desc=$(jira issue list -q "key = $id" --plain);
A=$(awk -F"$id" '{print $2}' <<< $desc)

Keybase proof

I hereby claim:

  • I am zeyadetman on github.
  • I am zeyadetman (https://keybase.io/zeyadetman) on keybase.
  • I have a public key ASBMhPyomnelq8bQO1z_-lahvzuv1jqvHKhSo4fADHe64wo

To claim this, I am signing this object:

@zeyadetman
zeyadetman / eslint.md
Last active December 27, 2020 23:26
eslint configs for nodejs projects with typescript

List of installs

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint
  • eslint-config-airbnb-base
  • eslint-config-prettier
  • eslint-plugin-import
  • eslint-plugin-prettier
  • prettier
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/zeyadetman/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@zeyadetman
zeyadetman / RemoveDuplicateFiles.py
Created June 21, 2017 11:50
Remove Duplicate Files
#https://github.com/zeyadetman/RemoveDuplicateFiles
import os
import hashlib
import sys
files = []
def hashing(Filepath):
with open(Filepath, 'rb') as f:
HashedFile = hashlib.sha256(f.read()).hexdigest()
return HashedFile