Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
consumer_key = 'your-consumer-key' | |
consumer_secret = 'your-consumer-secret' | |
access_token = 'your-access-token' | |
access_secret = 'your-access-secret' |
#!/usr/bin/expect -f | |
# usage: ./hubottest "hubot help" | |
spawn bin/hubot.coffee | |
sleep 3 | |
expect "Hubot>" | |
send "hubot [lrange $argv 0 10]\n" | |
expect eof |
So, you've merged the master branch with itself, and you ended up with a merge commit nobody wanted.
John and Pete are working together on a repo.
$ git log --graph --pretty=oneline --abbrev-commit # an alias I have under 'git lol', but 'gitk' does just fine
* 812492b (master, origin/master, origin/HEAD) Add stuff
# Considering an JSON object like this one: | |
# | |
# { | |
# "store": { | |
# "foo": { | |
# "value":"bar" | |
# } | |
# }, | |
# "anotherstore": { | |
# "wat":{ |
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |