wget -qO- icanhazip.com
wget -qO- ipecho.net/plain; echo
curl checkip.amazonaws.com # ipv4
curl ifconfig.co # ipv6
Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:
https://github.com/example/example.com
Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.
Guido van Rossum11 Sep 2012 - Public
Some patterns for fast Python. Know any others?
Avoid overengineering datastructures. Tuples are better than objects (try namedtuple too though). Prefer simple fields over getter/setter functions.
Built-in datatypes are your friends. Use more numbers, strings, tuples, lists, sets, dicts. Also check out the collections library, esp. deque.
Be suspicious of function/method calls; creating a stack frame is expensive.