Skip to content

Instantly share code, notes, and snippets.

View Sherlockboy's full-sized avatar
:octocat:
Focused

Khurshidbek Kobilov Sherlockboy

:octocat:
Focused
View GitHub Profile
@Sherlockboy
Sherlockboy / Makefile
Created November 22, 2023 10:08
Makefile template for Laravel and Sail
.PHONY: help
SAIL := ./vendor/bin/sail
help: ## Display all available commands.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
install: ## Setup project and install dependencies.
@cp .env.example .env
@cp .env.example .env.testing
@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"