Skip to content

Instantly share code, notes, and snippets.

@bloodf
Last active December 20, 2019 14:23
Show Gist options
  • Save bloodf/82175093728e2b6d6a6794cf92004a7b to your computer and use it in GitHub Desktop.
Save bloodf/82175093728e2b6d6a6794cf92004a7b to your computer and use it in GitHub Desktop.
Bash Alias
#Help
COMMANDS="Node -> nodeglobalinstall\nPackage Managers Update -> updaterepo\nApp Install -> ninite\niOS Sim Rec Video -> recsim nomeVideo.mp4\nFlush DNS -> flushdns\nClearbluetooth -> bluetoothRestart"
alias helpAlias="printf \"$COMMANDS\""
#NODE
NPM_PACKS="@quasar/cli @vue/cli @vue/cli-service-global @vue/devtools capacitor cordova electron eslint global ios-deploy ios-sim jscs jshint jslint ncu ndb netlify-cli nodemon now npm npm-check-updates prettier start-android-emulator ts-node tslint typescript vue-language-server"
alias updaterepo="npm update -g && brew update && brew upgrade"
alias nodeglobalinstall="npm install -g $NPM_PACKS"
alias listNodeModules="find . -name 'node_modules' -type d -prune"
alias pruneNodeModules="find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +"
alias ninite="curl -s 'https://api.macapps.link/pt/firefox-firefoxdev-chrome-dropbox-drive-github-sequelpro-vscode-docker-postman-insomnia-keka-1password-filezilla-appcleaner-ccleaner-caffeine-istatmenus-duet-spotify-calibre-handbrake-mpegstreamclip-skype-telegram-slack-whatsapp-discord' | sh"
#Mac
alias recsim="xcrun simctl io booted recordVideo — type=mp4"
alias flushdns="sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset"
alias bluetoothRestart="sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport && sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport"
#Docker
# alias dockerprune="docker rm -f $(docker ps -a -q) && docker rmi -f $(docker images -q) && docker system prune -a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment