Skip to content

Instantly share code, notes, and snippets.

@pmkay
Last active September 26, 2024 02:59
Show Gist options
  • Save pmkay/060bc87a6bbc412efc825b7e9d96bbeb to your computer and use it in GitHub Desktop.
Save pmkay/060bc87a6bbc412efc825b7e9d96bbeb to your computer and use it in GitHub Desktop.
Git and random aliases that I mostly use
alias gs="git status"
alias gl="git log"
alias glp="git log --graph --decorate --pretty=oneline --abbrev-commit"
alias gcom="git checkout master"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit -m "
alias gp="git push"
alias fuckthat="git reset --hard && git clean -df"
alias art="php artisan"
alias fuckds="find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch"
alias gprune="git fetch --prune"
alias art="php artisan"
alias restartzsh=". ~/.zshrc"
alias fuckmylocal="git fetch --prune origin && git reset --hard origin/master && git clean -f -d"
alias rmkext="sudo kextunload -b net.sf.tuntaposx.tun && sudo kextunload -b com.viscosityvpn.Viscosity.tun"
alias grmlocal="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d"
alias gprune="git fetch --prune"
alias drmsql="docker run --name mysql -e MYSQL_ROOT_PASSWORD=password -v mysql_data:/var/lib/mysql -p 3306:3306 -d mysql:8.0"
alias tpqueue="php artisan queue:work redis --queue=s3_queue,purchase_event,successful_transaction,mailgun,event,batch,collection_sms --sleep=5 --tries=2"
alias drmsql-exec="docker exec -it mysql mysql -uroot -ppassword"
alias open= "xdg-open"
alias gp-tracking="gnome-pomodoro-tracking.py"
alias update-p10k="git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull"
alias pwdf="readlink -f"
alias chrome-go="google-chrome --disable-web-security --user-data-dir='~/chrome-dev-sandbox'"
alias godir="cd ~/go/src"
alias restart-keys="killall xbindkeys && xbindkeys"
alias docker-remove-all='docker rm -f "$(docker ps -a -q)"'
alias fn-work="echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode"
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
alias update-php="sudo update-alternatives --config php"
alias awscb-local="./codebuild_build.sh -i aws/codebuild/standard:7.0 -a ./artifact/ -b ./buildspec.yml"
alias cb-local="~/sandbox/bin/codebuild_build.sh -i aws/codebuild/standard:7.0 -a ./artifact/ -c"
alias my_ip="ip address | grep -o \"inet 192.*/\" | awk '{ print \$2 }' | tr / ' ' | xargs"
alias killBT="rfkill block bluetooth"
alias unKillBT="rfkill unblock bluetooth"
alias cclip="xclip -selection clipboard"
alias pclip="xclip -selection clipboard"
alias get_time="/home/pk/go/src/getCurrentTime/get_current_time"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment