- AttributeError: 'BlockDeviceType' object has no attribute 'encrypted' - upgrade to >=2.3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -fA|grep ssh|awk '{print $2}'|xargs -I {} kill {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rli 'old-word' * | xargs -i@ sed -i 's/old-word/new-word/g' @ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://169.254.169.254/latest/meta-data/ | |
curl http://169.254.169.254/latest/meta-data/local-ipv4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function show | |
{ | |
# Show the definition of the verb given in $1 e.g. `show ll` (alias) or | |
# `show show` (function) or `show who` (command). | |
verb=$1 | |
alias $1 2>/dev/null \ | |
|| declare -f $1 2>/dev/null \ | |
|| /usr/bin/which $1 2>/dev/null \ | |
|| echo "Unrecognized command '$1'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readline | |
readline.write_history_file('my_history.py') |
OlderNewer