Skip to content

Instantly share code, notes, and snippets.

@iget-esoares
Last active October 1, 2015 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iget-esoares/8469a0a4eca649d83cdd to your computer and use it in GitHub Desktop.
Save iget-esoares/8469a0a4eca649d83cdd to your computer and use it in GitHub Desktop.
alias ..="cd .."
alias ...="cd ../.."
alias h='cd ~'
alias c='clear'
alias cdt='cd ~/Code/cdtsys'
alias vpublish='php artisan vendor:publish --force'
function link-material() {
sudo rm -rf ~/Code/cdtsys/vendor/iget-master/material-admin
cd ~/Code/cdtsys/vendor/iget-master/
sudo ln -s ~/Code/material-admin/ material-admin
cd ~/Code/cdtsys/
}
function fixperm() {
sudo chown -R www-data storage
sudo chmod -R 0770 storage
sudo chown -R www-data bootstrap/cache
sudo chmod -R 0770 bootstrap/cache
echo "Laravel permissions fixed"
}
function serve() {
if [[ "$1" && "$2" ]]
then
sudo dos2unix ~/scripts/serve.sh
sudo bash ~/scripts/serve.sh "$1" "$2"
else
echo "Error: missing required parameters."
echo "Usage: "
echo " serve domain path"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment