alias v='fd --type f --hidden --exclude .git | fzf-tmux -p --reverse | xargs nvim'
#!/bin/bash | |
version=`php artisan --version` | |
if [[ ${version} != *"Laravel Framework"* ]]; then | |
echo "Not a Laravel app, exiting." | |
exit; | |
fi | |
# Turn on maintenance mode |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
alias pa=’php artisan’ | |
alias pas=’php artisan serve’ | |
alias pam=’php artisan migrate’ | |
alias pamf=’php artisan migrate:fresh’ | |
alias pamm=’php artisan make:migration’ | |
alias model=’php artisan make:model’ | |
alias cntrl=’php artisan make:controller’ | |
alias policy=’php artisan make:policy’ | |
alias middleware=’php artisan make:middleware’ | |
alias routes=’php artisan route:list’ |
Concat to column new data (append) (instead of getting the data then appending to it)
UPDATE `table_name` SET =concat(, 'newData')
Please be sure to read all the qualifications and requirements before applying
Open only to people from METRO MANILA who are willing to report to our MAKATI OFFICE 2x a week!
We are seeking a Lead Developer. Please open https://laravelphilippines.org/jobs/opening.html for the details
<?php | |
return PhpCsFixer\Config::create() | |
->setRules(array( | |
'@PSR2' => true, | |
'binary_operator_spaces' => true, | |
'blank_line_after_namespace' => true, | |
'blank_line_after_opening_tag' => true, | |
'blank_line_before_return' => true, | |
'braces' => true, |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"github.com/microcosm-cc/bluemonday" | |
"github.com/russross/blackfriday/v2" | |
) |
<?php | |
//file: /.env.local.php | |
// return the configuration for the 'local' environment | |
return array( | |
'db_host' => '127.0.0.1', | |
'db_name' => 'DB_NAME', // specify database name | |
'db_user' => 'DB_USER', // specify database username | |
'db_pass' => 'DB_PASS', // specify database password | |
); |
# Bash function ⬇️ | |
nah () { | |
git reset --hard | |
git clean -df | |
if [ -d ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; then | |
git rebase --abort | |
fi | |
} |