Skip to content

Instantly share code, notes, and snippets.

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

Amir Shirdel amirex128

🏠
Working from home
View GitHub Profile
@amirex128
amirex128 / git_cheet_sheet
Last active April 22, 2022 13:19
Git Cheet Sheet
Git add .
Move to Stage
Git restore --staged
Move stage file or code to unstage
Git restore
Remove last change from stage (first your code must move to stage)
Git status -s
@amirex128
amirex128 / spring_boot_cheatcheet
Last active May 27, 2021 09:57
its a cheat sheet for spring boot's annotation
@Configuration classes is to be sources of bean definitions for the Spring IoC Container.
@Component is an annotation that allows Spring to automatically detect our custom beans.
// create new bean for your class
@Bean
// The scope of a bean defines the life cycle and visibility of that bean in the contexts we use it.
//we have this scope:
//singleton scoped beans are scoped to a single application context only.
//singleton @Scope("singleton") //create class once
//prototype @Scope("prototype ") //create class affter every request Autowire
//request @RequestScope
Artisan
// Displays help for a given command
php artisan --help OR -h
// Do not output any message
php artisan --quiet OR -q
// Display this application version
php artisan --version OR -V
// Do not ask any interactive question
php artisan --no-interaction OR -n
// Force ANSI output