Don't forget to attribute the authors of the examples if you use this in your shell scripts. Wouldn't want to infringe copyright. Thanks Stack Exchange.
CC0 is problematic since in some countries (as Germany) there exists no such thing as public domain. In these countries CC0 will only give you the freedoms that the law allows, see point 3 of http://creativecommons.org/publicdomain/zero/1.0/legalcode
For those that are interested in some details: The German "Urheberrechtsgesetz" is based on a completely different idea than the US copyright. Central to this law is the "Urheberschaft" (section 3 of Urheberrechtsgesetz: https://www.gesetze-im-internet.de/bundesrecht/urhg/gesamt.p...), which basically gives you the right to be acknowledged for creating the work and must not be sold. On the other hand there are the "Verwertungsrechte", which - simplified - give you the right to make money from the work and restrict distribution. These may be sold. Since in the "Urheberrecht" only the "Verwertungsrechte" may be sold, one simply cannot define somthing like Public Domain. So the CC0 tries to mimic public domain by stating "Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose."
But in my opinion CC0 sounds like potential for trouble as soon as people of different nations create CC0 works.
Sqlite has a really nice solution for this, by the way. Their code is public domain. If you happen to live in a place that doesn't have a well formed notion of public domain and that's going to cause you a problem (SQLite's never gonna come after you, but maybe your own government will?), for 6 grand the sqlite guys will sell you an sqlite licence that is basically just a well formed concept of public domain, and then use the money to fund more sqlite development.
CC0 falls back to a very permissive license in countries without a concept of the "public domain". It's like BSD 0-clause. My only concern with CC0 is that it makes explicit that patent grants are not given to anybody who gets the work.
I wonder whether StackOverflow founders have plans to use their data as a training set for future program synthesis AIs (i.e. robot coders who will kick most of us out of our jobs mwahahahaha)
Even a semi-smart bot that will give you the most relevant StackOverflow question/answers for your specific natural-language-specified question would kick ass (although to be fair, Google search does a great job of throwing up useful ones.)
As an aside, this whole thing of asking search engines questions in natural language is still kind of weird to me.
Well, since this is what people already do some of the time, they just do it manually, especially when learning a new language or library. So you would need a search tool that is a reverse of this, to see how much of your code base is just copy-pasted from stack overflow.