Last active
February 29, 2024 17:43
-
-
Save kossa/22ba29d33be457594b46d3d53af9e8d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Kossa Alias | |
alias deploy="git pull origin master && | |
composer install --no-interaction --quiet --no-dev --prefer-dist --optimize-autoloader --no-progress --no-ansi && | |
php artisan migrate --force && | |
php artisan optimize:clear && | |
php artisan clear-compiled && | |
php artisan optimize && | |
chweb | |
" | |
alias php80="/opt/homebrew/opt/[email protected]/bin/php" | |
alias php81="/opt/homebrew/opt/[email protected]/bin/php" | |
alias php82="/opt/homebrew/opt/[email protected]/bin/php" | |
alias startmeilisearch="cd ~/ && ./meilisearch" | |
alias co="code ." | |
alias yt="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4" | |
alias wsync='wget -r -np -nH --cut-dirs=2 -c -m' | |
alias w='axel -a -n 8' | |
alias wg='wget -c --tries=75 ' | |
alias dt='wget -Q5m -i "http://ipv4.download.thinkbroadband.com/100MB.zip" -O ~/Downloads/test' | |
alias dtr='rm ~/Downloads/test*' | |
alias c='cd ~/www' | |
alias ll='ls -al' | |
alias ch='sudo chmod -R 777 .' | |
alias chweb='sudo chown -R www-data:deployer . && 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 -Q5m -i "https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-desktop-amd64.iso" -O ~/Downloads/test ' | |
alias gi='guard init' | |
alias gil='cp ~/Guardfile . && guard' | |
alias own='sudo chown -R www-data:www-data .' | |
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 [email protected]" | |
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 site.zip [email protected]:~/www/'" | |
alias wifi="sudo modprobe brcmsmac" | |
alias phpserver="php -S 127.0.0.1:4321" | |
alias rwatch="npm run watch" | |
alias pn="pnpm" | |
alias rw="rwatch" | |
alias s="speedtest" | |
alias dnsclear="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" | |
alias dnsclear="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" | |
alias hideBluesnooze="defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze" | |
alias showBluesnooze="defaults delete com.oliverpeate.Bluesnooze hideIcon && killall Bluesnooze" | |
#alias update='sudo apt-get update' | |
#alias upgrade='sudo apt-get upgrade' | |
#alias='sudo pacman -Syu' | |
#GIT command | |
alias st='git status' | |
alias gcb='git checkout -b ' | |
# alias st='git status -uno --porcelain' | |
alias ga='git add .' | |
alias gd='git diff' | |
alias gc='ga && git commit -m' | |
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all' | |
alias gm='git merge dev' | |
alias gdev='git checkout develop' | |
alias gmaster='git checkout master' | |
alias push='git push -u origin' | |
alias pushall='git remote | xargs -L1 git push --all' | |
alias pullhard='git fetch --all && git reset --hard origin/master' | |
# alias gmagic='gmaster && gm && git push && gdev && git merge master' | |
alias gchmod='git config core.fileMode false' | |
alias nah="git reset --hard;git clean -df;" | |
# Laravel | |
alias pest='./vendor/bin/pest' | |
alias ar='php artisan' | |
alias vs='valet start' | |
alias vp='valet stop' | |
alias p='ar test --parallel' | |
alias pc='ar test --parallel --coverage' | |
alias lclear='ar cache:clear && ar view:clear && ar route:clear && ar config:clear && ar optimize: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 t='php artisan test' | |
alias art='while true; do php artisan tinker; done' | |
alias dump='composer dumpautoload -o' | |
alias cr='composer require -W' | |
alias ci='composer install' | |
alias cu='composer update' | |
alias db='ar migrate:refresh' | |
alias dbs='ar migrate:refresh --seed' | |
alias ars='ar migrate:fresh --seed' | |
alias arm='ar migrate' | |
alias seed='ar db:seed' | |
alias ldocs='apidoc -i app/Http/Controllers/Api/ -o public/api-docs/ -t resources/apiTemplate/' | |
alias mn='ar make:notification' | |
alias mc='ar make:controller' | |
alias mm='ar make:model' | |
alias ms='ar make:seed' | |
alias install-laravel="composer install && cp .env.example .env && php artisan key:generate && npm i && ar storage:link && valet secure" | |
alias phpunit='./vendor/bin/phpunit' | |
# NPM | |
alias nv16='nvminit && nvm use 16' | |
alias nv18='nvminit && nvm use 18' | |
alias nv20='nvminit && nvm use 20' | |
alias y='yarn' | |
alias yd='yarn dev' | |
alias yb='yarn build' | |
alias ys='yarn serve' | |
alias ya='yarn add' | |
alias rdev='pn dev -o' | |
alias rprod='npm run production' | |
alias ni='npm i --verbose' | |
alias updateBrew='brew upgrade --cask && brew upgrade' | |
alias fixnpm='npm cache clean --force' | |
alias updateNPM='fixnpm;npm update -g' | |
alias updateComposer='composer global update' | |
alias updateGLOBAL='updateBrew;updateNPM;updateComposer;githubSync;' | |
alias githubSync=' | |
echo "=======> dorouscom"; c; cd dorouscom; git push github --all; | |
echo "=======> cjb"; c; cd cjb; git push github --all; | |
echo "=======> sihhatech"; c; cd sihhatech; git push github --all; | |
echo "=======> elwatan"; c; cd elwatan; git push github --all; | |
echo "=======> ligiresearch"; c; cd ligiresearch; git push github --all; | |
echo "=======> cjb-next"; c; cd cjb-next; git push github --all; | |
echo "=======> gis-next"; c; cd gis-next; git push github --all; | |
echo "=======> cjbnetwork"; c; cd cjbnetwork; git push github --all; | |
echo "=======> zimou-express"; c; cd zimou-express; git push github --all; | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment