I hereby claim:
- I am mauritsvanrees on github.
- I am mauritsvanrees (https://keybase.io/mauritsvanrees) on keybase.
- I have a public key whose fingerprint is 63C2 2569 E48E D8FB 0067 E5BB 7AE1 712D C8E7 0923
To claim this, I am signing this object:
""" | |
Parse buildout.cfg and recursively download all extends files that are online | |
Usage:: | |
python buildout_extends_grabber.py [url or path to buildout file] | |
Needs Python 3.7 or higher. | |
Examples:: |
#!/usr/bin/env python | |
try: | |
from subprocess import CalledProcessError | |
CalledProcessError # pyflakes | |
except ImportError: | |
CalledProcessError = SystemError | |
from subprocess import PIPE | |
from distutils.log import warn |
#! /bin/sh | |
echo "Nukes all trailing white space in *pt and *py and some other files." | |
FOR_REAL=0 | |
if test $# -eq 1; then | |
if test $1 = "-y"; then | |
FOR_REAL=1 | |
fi | |
fi | |
if test $FOR_REAL -eq 1; then |
HTTP/1.1 200 OK | |
Server: nginx/1.1.19 | |
Content-Type: text/html; charset=utf-8 | |
Content-encoding: gzip | |
Strict-Transport-Security: max-age=31536000 | |
Cache-Control: max-age=3600, public | |
Via: 1.1 varnish | |
Content-Length: 829 | |
Accept-Ranges: bytes | |
Date: Wed, 29 May 2013 12:26:04 GMT |
local_authors.txt | |
authors.cfg |
import ZODB.FileStorage | |
import logging | |
import sys | |
from ZODB.TimeStamp import TimeStamp | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger('truncate') | |
if len(sys.argv) != 4: | |
print("Usage: %s <source-filestorage> <target-filestorage> " |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
############################################################################## | |
# | |
# Copyright (c) 2015 Zope Foundation and Contributors. | |
# All Rights Reserved. | |
# | |
# This software is subject to the provisions of the Zope Public License, | |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | |
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | |
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
#!/usr/bin/env python | |
############################################################################## | |
# | |
# Copyright (c) 2015 Zope Foundation and Contributors. | |
# All Rights Reserved. | |
# | |
# This software is subject to the provisions of the Zope Public License, | |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | |
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | |
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
"""Grab version files from dist.plone.org for each Plone version. | |
Original location: | |
https://gist.github.com/mauritsvanrees/99cb4a25b622479e7dc3 | |
Goal: grep through these files to see which version of a package is | |
used in which Plone version. | |
Usage: | |
$ virtualenv-2.7 . |