Skip to content

Instantly share code, notes, and snippets.

@passcod
Created August 2, 2012 06:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save passcod/3234448 to your computer and use it in GitHub Desktop.
Save passcod/3234448 to your computer and use it in GitHub Desktop.
The public domain tri-license

Sometimes, for small pieces of code, I use a special license header that goes like this:

/* Released as public domain, or licensed under
 * either CC0 or the MIT/X11, whichever gives
 * you the most rights in your legislation.
 */

Now, there's a few things in here:

  • For many countries, the public domain clause will suffice
  • In those where it doesn't the CC0 license will ensure that "public domain"-like rights are granted
  • The MIT license is useless, but it's there to give those people who don't know about CC0 an idea of what they get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment