dig +short myip.opendns.com @resolver1.opendns.com
Reference:
How to find my public IP address from command line on linux
dig +short myip.opendns.com @resolver1.opendns.com
./config.status --config
from subprocess import Popen, PIPEcmd = "blah blah"process = Popen(cmd.split(), stdout=PIPE)process.communicate() # execute it, the output goes to the stdoutexit_code = process.wait() # when finished, get the exit codeimport os
print os.environ['ENV_VAR_YOU_WANT']
git clone <my-clone-of-upstream-repo>
cd <upstream-repo>
git remote add upstream <upstream-repo>
git config --global push.default simple
git checkout -b <new-branch>
git fetch upstream
git merge-base new-branch master => This will generate a commit hash
git rebase --interactive <commit hash>
git rebase upstream/master
git push -f
vim -u NONE filename