This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import gc | |
| import gevent | |
| import greenlet | |
| import multiprocessing | |
| import os | |
| """ | |
| Gevent doesn't cope well with forking. The child process after the | |
| fork ends up with all the same greenlets running as the parent | |
| process, which is almost certainly not what you wanted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import binascii | |
| from Crypto.Cipher import AES | |
| from Crypto.Random.random import getrandbits | |
| from hashlib import md5 | |
| from schematics.types import StringType | |
| import struct | |
| class DecryptionException(Exception): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| # CGI script for generating an RSS feed of the comment on a Hacker | |
| # News posting. | |
| # | |
| # Copyright (c) 2013 Jonathan Kamens <jik@kamens.us>. | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |
NewerOlder