Skip to content

Instantly share code, notes, and snippets.

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

Muhammad Al-jefry mhmdAljefri

🏠
Working from home
View GitHub Profile
@tannerlinsley
tannerlinsley / createCrudHooks.js
Created November 29, 2020 06:39
A naive, but efficient starter to generate crud hooks for React Query
export default function createCrudHooks({
baseKey,
indexFn,
singleFn,
createFn,
updateFn,
deleteFn,
}) {
const useIndex = (config) => useQuery([baseKey], indexFn, config)
const useSingle = (id, config) =>
@mhmdAljefri
mhmdAljefri / install.sh
Last active February 27, 2019 14:37 — forked from ali-sheiba/install.sh
Setup Ubuntu Server with Ngnix + MySQL + Redis + Git + RVM + Ruby 2.4.0 + Ruby On Rails
#!/bin/sh
# ngix + required packages
sudo apt update
sudo apt upgrade -y
sudo apt install curl git-core nginx build-essential tcl8.5 -y
sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
# mysql
@parmentf
parmentf / GitCommitEmoji.md
Last active July 29, 2024 05:57
Git Commit message Emoji
@brianclements
brianclements / Commit Formatting.md
Last active July 29, 2024 05:43
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.