Summary
- First installations
- How to use FNM: Node version manager
- How to use Antigen: Zsh themes and plugins manager
- As part of your daily routine
- Credits
{ | |
"Inline typed variable": { | |
"prefix": [ | |
"var" | |
], | |
"body": [ | |
"$BLOCK_COMMENT_START* @var ${1:mixed} $${2} $BLOCK_COMMENT_END", | |
"\\$${2} = ${3};" | |
] | |
}, |
{ | |
"setup defineProps": { | |
"prefix": "sprops", | |
"body": [ | |
"${1:const props = }defineProps({", | |
"\t${2:${3:prop}: ${4:type},}", | |
"});" | |
], | |
"description": "Create setup defineProps block" | |
}, |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. |
<?php | |
use PhpCsFixer\{Config, Finder}; | |
$rules = [ | |
// Rules taken from: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200#gistcomment-3860156 | |
'array_syntax' => ['syntax' => 'short'], | |
'array_indentation' => true, | |
'no_unused_imports' => true, | |
'blank_line_after_namespace' => true, |
stages: | |
- build | |
- deploy | |
yarn_install: | |
stage: build | |
cache: | |
key: "${CI_PROJECT_ID}_yarn" | |
policy: pull-push | |
paths: |
<?php | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Illuminate\Http\Exceptions\HttpResponseException; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Auth\Access\AuthorizationException; |
{ | |
"Object property": { | |
"prefix": "property", | |
"body": [ | |
"$BLOCK_COMMENT_START*", | |
" * @var ${1:mixed}", | |
" $BLOCK_COMMENT_END", | |
"${2:protected} $${3:name};" | |
] | |
}, |
{ | |
"editor_path": "/usr/local/bin/code", | |
"editor_argument_format": "--goto ${file}:${line}:${col}" | |
} |
alias gitclean='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d && git remote prune origin' | |
alias dockerclean='docker stop $(docker ps -aq) && docker rm $(docker ps -a -q) -f' | |
alias dockerwash='docker rmi $(docker images -q)' | |
alias dockerstop='docker stop $(docker ps -a -q)' | |
alias dockerkill='docker kill $(docker ps -q)' | |
alias dockerprune='docker system prune --all --force --volumes' | |
alias dockerreset='docker stop $(docker container ls -a -q) && docker system prune -a -f --volumes' | |
alias gs='git status' | |
alias gl='git log' | |
alias gaa='git add .' |