Mercurial > repo
view paste/paste.18813 @ 7006:458fca97071d
<b_jonas> perl -e-e($o="bin/culprits-ng") and die; open$O,">",$o or die; print $O qq{#!/bin/sh\\n},q{exec hg log -l 512 --template "{desc}\\0" -- "$@" | perl -0ne \'/^<([^>]*)>/ and!$t{$1}++and print"$1 "\'}; close$O;chmod 0755,$o or die;
author | HackBot |
---|---|
date | Thu, 25 Feb 2016 07:17:36 +0000 |
parents | dc151ee4038e |
children |
line wrap: on
line source
#!/usr/bin/env python import os import sys import subprocess http_proxy = 'http://127.0.0.1:3128' path = '/hackenv/bin:/opt/python27/bin:/opt/ghc/bin:/usr/bin:/bin' lib = os.path.abspath('lib') subprocess.call( ['nice', '-n10', '/usr/bin/umlbox', '-R3128:127.0.0.1:3128', '--no-stdin', '--base-mounts', '--mount', '/opt', #'--mount', '/var/irclogs', '--mount', '/etc/java-6-openjdk', '--mount', lib, '--translate-write', '/hackenv', os.environ['HACKENV'], '--translate', '/hackenv/.hg', os.path.join(os.environ['HACKENV'], '.hg'), '--cwd', '/hackenv', '--timeout', '30', 'env', 'PATH=' + path, 'HACKENV=/hackenv', 'http_proxy=' + http_proxy, 'LANG=en_NZ.UTF-8', os.path.join(lib, 'limits')] + sys.argv[1:])