sail composer require spatie/laravel-ray --dev
sail artisan ray:publish-config --docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REMOTE | |
git remote -v # to list the remotes | |
git remote set-url origin new-remote-url # change the url | |
git remote rename origin new-remote-name # change the remote name | |
# DELETE BRANCH | |
git branch -D some-branch # local | |
git push origin --delete remote_branch_name # remote | |
# RENAME BRANCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew unlink php | |
valet use [email protected] #or another version | |
brew services restart --all | |
composer global update | |
valet start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"dev": "nuxt", | |
"build": "nuxt --openssl-legacy-provider build", | |
"start": "nuxt --openssl-legacy-provider start", | |
"generate": "nuxt --openssl-legacy-provider generate", | |
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .", | |
"lint:prettier": "prettier --check .", | |
"lint": "npm run lint:js && npm run lint:prettier", | |
"lintfix": "prettier --write --list-different . && npm run lint:js -- --fix" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"start": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", | |
"serve": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", | |
"build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", | |
"test:unit": "vue-cli-service test:unit", | |
"test:e2e": "vue-cli-service test:e2e", | |
"lint": "vue-cli-service lint" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$(brew --prefix)/opt/python@3/libexec/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap shivammathur/php | |
brew install shivammathur/php/[email protected] | |
brew link [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: sh git-reset.sh -h someCommitHash -t some/feature-branch | |
while getopts h:t: flag | |
do | |
case "${flag}" in | |
h) hashed=${OPTARG};; | |
t) target=${OPTARG};; | |
esac | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic Types | |
let id: number = 5 | |
let company: string = 'Traversy Media' | |
let isPublished: boolean = true | |
let x: any = 'Hello' | |
let ids: number[] = [1, 2, 3, 4, 5] | |
let arr: any[] = [1, true, 'Hello'] | |
// Tuple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unlink /usr/local/bin/python | |
ln -s /usr/local/bin/python3.10 /usr/local/bin/python |
NewerOlder