sudo service mysql stop
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''
php artisan cache:clear
php artisan migrate
This file contains hidden or 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
| #!/usr/bin/make | |
| help: | |
| @echo "make" | |
| @echo " run-db" | |
| @echo " Start postgresql and redis database" | |
| @echo " stop-db" | |
| @echo " Stop postgresql and redis database" | |
| @echo " restart-db" | |
| @echo " Restart postgresql and redis database" |
This file contains hidden or 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
| name: Deploy code to kinsta | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| sync: | |
| description: 'File synchronization' |
This file contains hidden or 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
| name: Deploy code to FTP | |
| on: push | |
| jobs: | |
| staging: | |
| name: 🎉 Deploy on staging | |
| if: github.ref_name == 'dev' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get latest staging code | |
| uses: actions/checkout@v3 |
This file contains hidden or 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
| function paginate(array, page_size, page_number) { | |
| // human-readable page numbers usually start with 1, so we reduce 1 in the first argument | |
| return array.slice((page_number - 1) * page_size, page_number * page_size); | |
| } |
This file contains hidden or 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
| "workbench.colorCustomizations": { | |
| // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
| "contrastActiveBorder": "", | |
| "contrastBorder": "", | |
| // Base Colors | |
| "focusBorder": "", | |
| "foreground": "", | |
| "widget.shadow": "", | |
| "selection.background": "", | |
| "descriptionForeground": "", |
This file contains hidden or 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
| { | |
| // ---- emmet config ---- | |
| "emmet.showExpandedAbbreviation": "never", | |
| "emmet.triggerExpansionOnTab": true, | |
| "emmet.showSuggestionsAsSnippets": true, | |
| "editor.snippetSuggestions": "top", | |
| "emmet.includeLanguages": { | |
| "javascript": "javascriptreact", | |
| "vue-html": "html", | |
| "plaintext": "jade" |