Skip to content

Instantly share code, notes, and snippets.

View tqt97's full-sized avatar
:octocat:
Feel happy to code <3

TuanTQ tqt97

:octocat:
Feel happy to code <3
View GitHub Profile
@tqt97
tqt97 / mac-setup-redis.md
Created August 26, 2022 06:49 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@tqt97
tqt97 / alias.txt
Last active November 4, 2024 04:24
Setup Alias for git bash | Command Prompt
# For git bash in window
Find C:\Program Files\Git\etc\profile.d\aliases.sh and edit it
...
# Alias for git
alias gs='git status'
alias gaa='git add .'
alias gcm='git commit -m $1'
alias gpom='git push origin master'
alias gpo='git push origin $1'
@tqt97
tqt97 / Readme.md
Created February 8, 2025 09:32 — forked from anubra266/Readme.md
Laravel Queue Email Verify and Password Reset Mails

Laravel Queue Email Verify and Password Reset Mails

First step is to overwrite the default methods in your User Model.

NB: We are still using the default Laravel Notifications.

# App/Models/User.php

php
@tqt97
tqt97 / docker.txt
Last active June 17, 2025 15:18
Setup docker for laravel
# update
sudo apt update && sudo apt upgrade -y
# các package cơ bản
sudo apt install -y \
build-essential \
software-properties-common \
apt-transport-https \
ca-certificates \
curl \
@tqt97
tqt97 / code-review-checklist.md
Last active August 19, 2025 15:15 — forked from nerandell/code-review-checklist.md
PHP Code Review Guidelines

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers

PHP Code Review Refactor & Optimization Guide

Checklist các case thường gặp khi review code PHP (Fuel, Laravel, Symfony) và cách refactor cho ngắn gọn, dễ hiểu, tối ưu.


1. Control Flow

1.1. Nested if/else → Early Return