Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
hgext /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
convert
[ DIR ]
drwxr-xr-x
fastannotate
[ DIR ]
drwxr-xr-x
fsmonitor
[ DIR ]
drwxr-xr-x
highlight
[ DIR ]
drwxr-xr-x
hooklib
[ DIR ]
drwxr-xr-x
infinitepush
[ DIR ]
drwxr-xr-x
largefiles
[ DIR ]
drwxr-xr-x
lfs
[ DIR ]
drwxr-xr-x
narrow
[ DIR ]
drwxr-xr-x
remotefilelog
[ DIR ]
drwxr-xr-x
zeroconf
[ DIR ]
drwxr-xr-x
__init__.py
106
B
-rw-r--r--
absorb.py
40.96
KB
-rw-r--r--
acl.py
14.16
KB
-rw-r--r--
amend.py
2.2
KB
-rw-r--r--
automv.py
3.64
KB
-rw-r--r--
beautifygraph.py
3.12
KB
-rw-r--r--
blackbox.py
6.75
KB
-rw-r--r--
bookflow.py
3.72
KB
-rw-r--r--
bugzilla.py
41.63
KB
-rw-r--r--
censor.py
3.92
KB
-rw-r--r--
children.py
2.34
KB
-rw-r--r--
churn.py
7.63
KB
-rw-r--r--
clonebundles.py
10.51
KB
-rw-r--r--
closehead.py
2.69
KB
-rw-r--r--
commitextras.py
2.39
KB
-rw-r--r--
eol.py
16.2
KB
-rw-r--r--
extdiff.py
24.88
KB
-rw-r--r--
factotum.py
4.87
KB
-rw-r--r--
fastexport.py
6.86
KB
-rw-r--r--
fetch.py
6.41
KB
-rw-r--r--
fix.py
36.29
KB
-rw-r--r--
githelp.py
32.43
KB
-rw-r--r--
gpg.py
11
KB
-rw-r--r--
graphlog.py
3.32
KB
-rw-r--r--
hgk.py
11.9
KB
-rw-r--r--
histedit.py
86
KB
-rw-r--r--
journal.py
20
KB
-rw-r--r--
keyword.py
29.87
KB
-rw-r--r--
logtoprocess.py
2.84
KB
-rw-r--r--
mq.py
143.52
KB
-rw-r--r--
notify.py
20.11
KB
-rw-r--r--
pager.py
2.58
KB
-rw-r--r--
patchbomb.py
31.11
KB
-rw-r--r--
phabricator.py
80.65
KB
-rw-r--r--
purge.py
1.71
KB
-rw-r--r--
rebase.py
82.13
KB
-rw-r--r--
record.py
5.07
KB
-rw-r--r--
releasenotes.py
21.88
KB
-rw-r--r--
relink.py
6.66
KB
-rw-r--r--
remotenames.py
13.78
KB
-rw-r--r--
schemes.py
4.34
KB
-rw-r--r--
share.py
7.85
KB
-rw-r--r--
show.py
15.95
KB
-rw-r--r--
sparse.py
14.43
KB
-rw-r--r--
split.py
6.77
KB
-rw-r--r--
sqlitestore.py
38.68
KB
-rw-r--r--
strip.py
953
B
-rw-r--r--
transplant.py
30.08
KB
-rw-r--r--
uncommit.py
10.13
KB
-rw-r--r--
win32mbcs.py
6.97
KB
-rw-r--r--
win32text.py
7.17
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : logtoprocess.py
# logtoprocess.py - send ui.log() data to a subprocess # # Copyright 2016 Facebook, Inc. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. """send ui.log() data to a subprocess (EXPERIMENTAL) This extension lets you specify a shell command per ui.log() event, sending all remaining arguments to as environment variables to that command. Positional arguments construct a log message, which is passed in the `MSG1` environment variables. Each keyword argument is set as a `OPT_UPPERCASE_KEY` variable (so the key is uppercased, and prefixed with `OPT_`). The original event name is passed in the `EVENT` environment variable, and the process ID of mercurial is given in `HGPID`. So given a call `ui.log('foo', 'bar %s\n', 'baz', spam='eggs'), a script configured for the `foo` event can expect an environment with `MSG1=bar baz`, and `OPT_SPAM=eggs`. Scripts are configured in the `[logtoprocess]` section, each key an event name. For example:: [logtoprocess] commandexception = echo "$MSG1" > /var/log/mercurial_exceptions.log would log the warning message and traceback of any failed command dispatch. Scripts are run asynchronously as detached daemon processes; mercurial will not ensure that they exit cleanly. """ from __future__ import absolute_import import os from mercurial.utils import procutil # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or # leave the attribute unspecified. testedwith = b'ships-with-hg-core' class processlogger(object): """Map log events to external commands Arguments are passed on as environment variables. """ def __init__(self, ui): self._scripts = dict(ui.configitems(b'logtoprocess')) def tracked(self, event): return bool(self._scripts.get(event)) def log(self, ui, event, msg, opts): script = self._scripts[event] maxmsg = 100000 if len(msg) > maxmsg: # Each env var has a 128KiB limit on linux. msg can be long, in # particular for command event, where it's the full command line. # Prefer truncating the message than raising "Argument list too # long" error. msg = msg[:maxmsg] + b' (truncated)' env = { b'EVENT': event, b'HGPID': os.getpid(), b'MSG1': msg, } # keyword arguments get prefixed with OPT_ and uppercased env.update( (b'OPT_%s' % key.upper(), value) for key, value in opts.items() ) fullenv = procutil.shellenviron(env) procutil.runbgcommand(script, fullenv, shell=True) def uipopulate(ui): ui.setlogger(b'logtoprocess', processlogger(ui))
Close