Skip to content

Instantly share code, notes, and snippets.

@kossa

kossa/My Aliases

Last active Feb 11, 2018
Embed
What would you like to do?
#Kossa Alias
alias deploy="git pull origin master && composer install && php artisan cache:clear && php artisan config:clear && php artisan debugbar:clear && php artisan route:clear && php artisan view:clear && sudo chmod 777 -R storage/ && php artisan config:cache && php artisan route:cache"
alias a='axel -a -n 8'
alias dt='axel -a -o ~/Downloads/test "http://speed.hetzner.de/1GB.bin"'
alias dtr='rm ~/Downloads/test*'
alias c='cd ~/www'
alias ll='ls -al'
alias ch='sudo chmod -R 777 .'
alias chweb='sudo chown -R hawess:hawess . && sudo find . -type d -exec chmod 755 {} + && sudo find . -type f -exec chmod 644 {} +'
alias g='guard'
alias pg='ping google.com'
alias getubuntu='wget http://releases.ubuntu.com/15.04/ubuntu-15.04-desktop-amd64.iso'
alias gi='guard init'
alias gil='cp ~/Guardfile . && guard'
alias own='sudo chown -R hawess:hawess .'
alias p='echo "kossa" | sudo -S pm-suspend'
alias gdm='echo "kossa" | sudo systemctl start gdm'
alias upgrade='yaourt -Syua'
alias u='uname -a'
alias www='cd ~/www/'
alias meteo='curl wttr.in/algiers'
alias lll='exa -l -T .'
alias zipi='zip -r site.zip .'
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
alias src="source ~/.zshrc"
alias h="howdoi "
alias vm="ssh vagrant@192.168.10.10"
alias xdebug="subl /etc/php/conf.d/xdebug.ini"
alias nginxrestart="sudo systemctl restart nginx"
alias fixsublime="rm ~/Dropbox/archlinux/home/SublimeText/Installed\ Packages/0_package_control_loader.sublime-package"
alias scpexample="echo 'scp -P 1988 site.zip kossa@159.203.178.93:~/www/'"
alias wifi="sudo modprobe brcmsmac"
alias phpserver="php -S 127.0.0.1:4321"
alias rwatch="npm run watch"
#Open sublime text project
alias s='subl -a .'
alias sub='subl -a .'
alias vpn='cd /etc/openvpn/'
#alias update='sudo apt-get update'
#alias upgrade='sudo apt-get upgrade'
#alias='sudo pacman -Syu'
#GIT command
alias st='git status'
alias ga='git add -A'
alias gd='git diff'
alias gc='ga && git commit -m'
alias gl='git log --oneline --graph --all --decorate'
alias gm='git merge dev'
alias gdev='git checkout dev'
alias gmaster='git checkout master'
alias push='git push -u origin'
alias pullhard='git fetch --all && git reset --hard origin/master'
alias gmagic='gmaster && gm && git push && gdev'
alias gchmod='git config core.fileMode false'
alias nah="git reset --hard;git clean -df;"
# DOCS
alias btsite='cd /Users/mac/www/Docs/bootstrap && npm run docs-serve'
alias vuesite='cd /Users/mac/www/Docs/vuejs.org/ && hexo server -p 4001'
alias larasite='cd /Users/mac/www/Docs/laravel-com/ && ar serve --port=8800'
alias nuxtdocs='cd /Users/mac/www/Docs/nuxt/docs && npm run dev'
alias nuxtsite='cd /Users/mac/www/Docs/nuxt/nuxtjs.org && npm run dev'
alias bulmasite='cd /Users/mac/www/Docs/bulma.io/docs && jekyll serve -P 4002'
# Laravel
alias lclear='ar cache:clear && ar view:clear && ar route:clear && ar config:clear'
alias arc='ar view:clear && ar route:clear && ar key:generate && ar config:clear && ar cache:clear'
alias r='php artisan route:list'
alias dump='composer dumpautoload -o'
alias db='ar migrate:refresh'
alias dbs='ar migrate:refresh --seed'
alias ars='ar migrate:fresh --seed'
alias seed='ar db:seed'
alias ldocs='apidoc -i app/Http/Controllers/Api/ -o public/api/ -t resources/apiTemplate/'
alias mn='ar make:notification'
alias mc='ar make:controller'
alias mm='ar make:model'
alias ms='ar make:seed'
# NPM
alias y='yarn'
alias rdev='npm run dev'
alias rprod='npm run production'
alias ni='npm i --verbose'
# Update
alias updateDocs='cd /Users/mac/www/Docs/bootstrap/; git pull; cd ../vuejs.org/; git pull; cd ../laravel-com/; git pull; cd ../nuxt/docs; git pull; cd ../nuxtjs.org/; git pull; cd ../../bulma.io/docs; git pull;'
alias updateBrew='brew upgrade'
alias updateNPM='npm update -g'
alias updateComposer='composer global update'
alias updateGLOBAL='updateBrew;updateNPM;updateComposer;updateDocs'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.