- Open git bash and run the commands to install extentions
- Open settings.json and paste this file
- Download Operator Mono Lig Or Fira Code for font
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
--- | |
image: alpine:latest | |
stages: | |
- deploy | |
stage-deploy: | |
stage: deploy | |
environment: | |
name: staging |
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
name: push-to-do-server | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
automatic-deploy: | |
runs-on: ubuntu-latest | |
steps: |
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
<?php | |
use Carbon\Carbon; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Log; | |
use Illuminate\Support\Facades\Session; | |
use Illuminate\Support\Facades\Storage; | |
use Illuminate\Support\Facades\Validator; |
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 | |
#your database info | |
DBHOST='localhost' | |
DBUSER='db_user' | |
DBPW='db_password' | |
DBNAME=('db_name') | |
#get recent version of databases from array | |
for i in "${DBNAME[@]}" |
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
public function testPaginateApi(ProductDataTable $dataTables) | |
{ | |
return $dataTables->ajax(); | |
} |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
--- | |
deployment: | |
tasks: | |
- export DEPLOYPATH=/home/{username}/{git_repo_dir}/ | |
- /bin/cp -r * $DEPLOYPATH |
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
# Alias for pythons | |
alias py=python | |
# Alias for composer | |
alias cr=composer | |
alias cri="composer install" | |
alias crd="composer dump-autoload" | |
alias cru="composer update" | |
# Alias for artisan commands |
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
{ | |
"editor.suggestSelection": "first", | |
"editor.fontFamily": "'Operator Mono Lig', 'Hack Nerd Font Mono'", | |
"editor.fontWeight": "400", | |
"editor.formatOnPaste": true, | |
"material-icon-theme.folders.color": "#8C59D0", | |
"editor.fontSize": 16, | |
"workbench.startupEditor": "none", | |
"workbench.editor.enablePreview": false, | |
"editor.formatOnType": true, |
NewerOlder