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 | |
#### | |
#### Deletes all rows from a given TABLE_NAME with a given PK PREFIX | |
#### | |
#### This does do a FULL TABLE SCAN, and can be expensive | |
#### | |
#### It does require you have a package called jq for parsing json, but you can get that through brew, apt-get, etc… | |
#### |
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 | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
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 editAliases="vim ~/.bash_aliases && source ~/.bash_aliases" | |
alias newSource="source ~/.zshrc" | |
alias gs="git status" | |
alias ga="git add" | |
alias g.="git add ." | |
alias gd="git branch -d" | |
gcom () { | |
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
git commit -m "$branch: $1" |