Skip to content

Instantly share code, notes, and snippets.

@jpaulin
Created June 1, 2017 06:53
Show Gist options
  • Save jpaulin/d25d25e51c2a0ae1de2377a1725307a0 to your computer and use it in GitHub Desktop.
Save jpaulin/d25d25e51c2a0ae1de2377a1725307a0 to your computer and use it in GitHub Desktop.
Die, Android emulator (god powers)
# Die, Android (on Ubuntu) -- This will be placed into your generic aliases collection
# Put to ~/.bash_aliases, and remember to source it in ~/.bashrc
alias 'dand=sudo killall -KILL qemu-system-i386'
# EDRA as an add-on, also into your ~/.bash_aliases
alias edra='vim ~/.bash_aliases; ba && hash -r'
# And ba - yet again it goes into ~/.bash_aliases
alias ba='. ~/bash_aliases; echo Realiased!'
#
# Now get an espresso!
#
# Check: 'alias' [Enter]
#
# The above 3 should be mentioned there
# Now you can just use 'edra' to edit & re-effectuate
# or 'dand' to kill the android emulator which is stuck
@jpaulin
Copy link
Author

jpaulin commented Jun 4, 2017

The gist contains more than 1 unrelated alias definitions for the (Bash) shell.

"dand" is the beef here.
I originally created this for quickly killing the Android emulator process, which is called 'qemu-system-i386'. See, sometimes the emulator gets stuck pretty bad and it's boring to try and snatch it within the GUI. Terminal just makes it so much faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment