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
| -- save a pointer to globals that would be unreachable in sandbox | |
| local e=_ENV | |
| function make_sandbox() | |
| -- sample sandbox environment | |
| sandbox_env = { | |
| ipairs = ipairs, | |
| next = next, | |
| pairs = pairs, | |
| pcall = pcall, |
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/env python2.7 | |
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json | |
| import tempfile | |
| import sqlite3 | |
| import subprocess |
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/env python | |
| import os | |
| import sys | |
| import signal | |
| import logging | |
| def multijob(jobs): | |
| pids = {} |
OlderNewer