Skip to content

Instantly share code, notes, and snippets.

@drugoi
Last active August 29, 2015 13:59
Show Gist options
  • Save drugoi/10619446 to your computer and use it in GitHub Desktop.
Save drugoi/10619446 to your computer and use it in GitHub Desktop.
Aliases
# Lock screen with screensaver
alias poka_krasivo="/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine"
# Lock mac
alias poka="/System/Library/CoreServices/Menu\ Extras/user.menu/Contents/Resources/CGSession -suspend"
# Start python server for Chrome SaveCSS
alias server="python /var/project/server.py"
# Fast jump to projects directory
alias projects="cd /var/project"
# Get current IP
alias ip="ifconfig |grep 'inet 10'"
# Flush DNS Cache
alias dnscache="dscacheutil -flushcache"
# Update software
alias update_all="softwareupdate -i -a && brew update --rebase && brew upgrade && brew upgrade brew-cask && brew cleanup -s --forse && brew cask cleanup && brew prune && npm update npm -g && npm update -g"
# Л is new K, yo
alias л="k"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment