-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.zsh
43 lines (31 loc) · 1.82 KB
/
aliases.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#aliases
alias ios="open -a Simulator"
alias lsd='ls -lF ${colorflag} | grep "^d"'
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm update npm -g; npm update -g; sudo gem update'
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //'"
# View HTTP traffic
alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'"
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
#node-webkit
alias nw='open -a /Applications/node-webkit.app'
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias server="python -m SimpleHTTPServer"
# Git
alias gff="git flow feature"
alias gmc='git merge --continue'
alias prune-branches="git remote prune origin && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d"
alias todays-work='git log --all --since=6am --format="* %s" --author="Mihael Safaric" --reverse -- | pbcopy'
alias yesterdays-work='git log --all --since=yesterday.6am --until=6am --format="* %s" --author="Mihael Safaric" --reverse -- | pbcopy'
alias git-undo-last-commit='git reset HEAD~'
# Code highlighting - https://gist.github.com/jimbojsb/1630790
alias jsh="pbpaste | highlight --syntax=js -O rtf | pbcopy"
alias cssh="pbpaste | highlight --syntax=css -O rtf | pbcopy"
alias canary="open -a Google\ Chrome\ Canary --args --disable-web-security"
# NutriU
alias create-nutriu-branch="python3 /Users/safo6m/dotfiles/nutriu/create_branch.py ${1}"
alias generate-changelog="python3 /Users/safo6m/dotfiles/nutriu/generate-changelog.py"