- 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
import readline | |
readline.write_history_file('my_history.py') |
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
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
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
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
https://52.10.100.133/solr/dc-collection/update?stream.body=<delete><query>collection_url:"https://registry.cdlib.org/api/v1/collection/26198/"</query></delete>&commit=true |
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
{ | |
"responseHeader":{ | |
"status":0, | |
"QTime":112, | |
"params":{ | |
"facet.query":"true", | |
"q":"-reference_image_md5:[* TO *]", | |
"facet.field":"collection_url", | |
"indent":"true", | |
"fq":"type_ss:\"image\"", |
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
Setup the tunnel: | |
ssh -i <identity file for bastion> -L <localport>:<endpoint ip or name>:<endpoint ssh port or other port> <bastion user>@<ssh bastion server> | |
Then from local machine connect to local port which will be forwarded to endpoint | |
ssh -i <identity file for endpoint> <endpoint user>@localhost -p <localport from above> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder