Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python27 /
lib /
python2.7 /
site-packages /
Delete
Unzip
Name
Size
Permission
Date
Action
Babel-1.3-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2024-09-10 19:30
Beaker-1.5.4-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
Jinja2-2.7.2-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2024-09-10 19:32
Mako-0.7.3-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
Paste-1.7.5.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
Tempita-0.5.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
_dummy_thread
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
_markupbase
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
_thread
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
alembic
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
alembic-0.8.3-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
argparse-1.2.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
babel
[ DIR ]
drwxr-xr-x
2024-09-10 19:30
beaker
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
builtins
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
chardet
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
chardet-2.3.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
clquota
[ DIR ]
drwxr-xr-x
2020-07-15 23:39
clselect
[ DIR ]
drwxr-xr-x
2020-07-15 23:39
clselector
[ DIR ]
drwxr-xr-x
2020-07-15 23:39
contextlib2-0.5.4-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
copyreg
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
dateutil
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
docopt-0.6.2-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:01
future
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
future-0.17.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
html
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
http
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
jinja2
[ DIR ]
drwxr-xr-x
2024-09-10 19:32
jsonschema
[ DIR ]
drwxr-xr-x
2019-12-10 21:24
jsonschema-2.6.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2019-12-10 21:24
libfuturize
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
libpasteurize
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
lvemanager
[ DIR ]
drwxr-xr-x
2020-07-15 23:39
lvestats
[ DIR ]
drwxr-xr-x
2020-07-15 23:39
mako
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
nose
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
nose-1.3.4-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
past
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
paste
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
pip
[ DIR ]
drwxr-xr-x
2023-12-11 23:31
pip-20.2.4.dist-info
[ DIR ]
drwxr-xr-x
2023-12-11 23:31
pkg_resources
[ DIR ]
drwxr-xr-x
2023-12-11 23:32
python_dateutil-1.4.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
python_editor-0.4-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
pytz
[ DIR ]
drwxr-xr-x
2017-07-03 23:01
queue
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
raven
[ DIR ]
drwxr-xr-x
2018-01-15 23:40
raven-6.3.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2018-01-15 23:39
repoze
[ DIR ]
drwxr-xr-x
2019-12-10 21:24
repoze.lru-0.6-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2019-12-10 21:24
reprlib
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
requests
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
requests-2.10.0-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
schema-0.3.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:01
setuptools
[ DIR ]
drwxr-xr-x
2023-12-11 23:35
setuptools-36.3.0.post20231113.dist-info
[ DIR ]
drwxr-xr-x
2023-12-11 23:32
socketserver
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
svgwrite
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
svgwrite-1.1.5-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
tempita
[ DIR ]
drwxr-xr-x
2017-07-03 23:07
tkinter
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
urllib3
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
urllib3-1.15.1-py2.7.egg-info
[ DIR ]
drwxr-xr-x
2018-05-29 23:45
winreg
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
xmlrpc
[ DIR ]
drwxr-xr-x
2020-03-17 21:54
Paste-1.7.5.1-py2.7-nspkg.pth
304
B
-rw-r--r--
2016-08-01 21:39
PySocks-1.5.7-py2.7.egg-info
322
B
-rw-r--r--
2016-11-17 09:09
argparse.py
85.73
KB
-rw-r--r--
2011-03-31 23:43
argparse.pyc
66.17
KB
-rw-r--r--
2015-07-22 22:48
argparse.pyo
66.01
KB
-rw-r--r--
2015-07-22 22:48
clhooklib.pyc
3.05
KB
-rw-r--r--
2020-01-21 22:38
contextlib2.py
14.48
KB
-rw-r--r--
2016-07-31 05:42
contextlib2.pyc
15.63
KB
-rw-r--r--
2016-10-07 14:30
contextlib2.pyo
15.63
KB
-rw-r--r--
2016-10-07 14:30
docopt.py
19.48
KB
-rw-r--r--
2014-06-16 13:14
docopt.pyc
24.09
KB
-rw-r--r--
2015-12-28 14:49
docopt.pyo
23.87
KB
-rw-r--r--
2015-12-28 14:49
easy_install.py
126
B
-rw-r--r--
2023-11-13 22:10
easy_install.pyc
328
B
-rw-r--r--
2023-11-13 22:10
easy_install.pyo
328
B
-rw-r--r--
2023-11-13 22:10
editor.py
2.49
KB
-rwxr-xr-x
2015-08-26 09:39
editor.pyc
3.49
KB
-rw-r--r--
2016-08-01 21:06
editor.pyo
3.49
KB
-rw-r--r--
2016-08-01 21:06
lprettytable.py
23.29
KB
-rw-r--r--
2015-07-22 22:10
lprettytable.pyc
19.24
KB
-rw-r--r--
2015-07-22 22:10
lprettytable.pyo
19.1
KB
-rw-r--r--
2015-07-22 22:10
pyparsing-1.5.6-py2.7.egg-info
670
B
-rw-r--r--
2015-07-22 22:25
pyparsing.py
151.79
KB
-rw-r--r--
2015-07-22 22:25
pyparsing.pyc
149.94
KB
-rw-r--r--
2015-07-22 22:25
pyparsing.pyo
149.94
KB
-rw-r--r--
2015-07-22 22:25
pytz-2012d-py2.7.egg-info
22.76
KB
-rw-r--r--
2015-07-22 22:23
repoze.lru-0.6-py2.7-nspkg.pth
307
B
-rw-r--r--
2017-03-17 14:46
schema.py
6.06
KB
-rw-r--r--
2014-04-28 22:11
schema.pyc
8.33
KB
-rw-r--r--
2015-12-28 14:43
schema.pyo
8.25
KB
-rw-r--r--
2015-12-28 14:43
six-1.9.0-py2.7.egg-info
1.39
KB
-rw-r--r--
2017-09-12 11:58
six.py
28.97
KB
-rw-r--r--
2015-01-02 17:33
six.pyc
30
KB
-rw-r--r--
2017-09-12 11:58
six.pyo
30
KB
-rw-r--r--
2017-09-12 11:58
socks.py
29.25
KB
-rw-r--r--
2016-05-21 23:54
socks.pyc
25.09
KB
-rw-r--r--
2016-11-17 09:09
socks.pyo
25.09
KB
-rw-r--r--
2016-11-17 09:09
sockshandler.py
2.84
KB
-rw-r--r--
2016-05-21 23:54
sockshandler.pyc
4.63
KB
-rw-r--r--
2016-11-17 09:09
sockshandler.pyo
4.63
KB
-rw-r--r--
2016-11-17 09:09
typing-3.5.3.0-py2.7.egg-info
1.45
KB
-rw-r--r--
2017-02-16 13:24
typing.py
63.37
KB
-rw-r--r--
2017-01-01 03:57
typing.pyc
77.21
KB
-rw-r--r--
2017-02-16 13:24
typing.pyo
76.57
KB
-rw-r--r--
2017-02-16 13:24
Save
Rename
#!/usr/bin/env python """Tools for invoking editors programmatically.""" from __future__ import print_function import locale import os.path import subprocess import tempfile from distutils.spawn import find_executable __all__ = [ 'edit', 'get_editor', 'EditorError', ] __version__ = '0.4' class EditorError(RuntimeError): pass def get_default_editors(): # TODO: Make platform-specific return [ 'vim', 'emacs', 'nano', ] def get_editor_args(editor): if editor in ['vim', 'gvim']: return '-f -o' elif editor == 'emacs': return '-nw' elif editor == 'gedit': return '-w --new-window' elif editor == 'nano': return '-R' else: return '' def get_platform_editor_var(): # TODO: Make platform specific return "$EDITOR" def get_editor(): # Get the editor from the environment. Prefer VISUAL to EDITOR editor = os.environ.get('VISUAL') or os.environ.get('EDITOR') if editor: return editor # None found in the environment. Fallback to platform-specific defaults. for ed in get_default_editors(): path = find_executable(ed) if path is not None: return path raise EditorError("Unable to find a viable editor on this system." "Please consider setting your %s variable" % get_platform_editor_var()) def edit(filename=None, contents=None): editor = get_editor() args = get_editor_args(os.path.basename(editor)) args = [editor] + args.split(' ') if filename is None: tmp = tempfile.NamedTemporaryFile() filename = tmp.name if contents is not None: with open(filename, mode='wb') as f: f.write(contents) args += [filename] proc = subprocess.Popen(args, close_fds=True) proc.communicate() with open(filename, mode='rb') as f: return f.read() def _get_editor(ns): print(get_editor()) def _edit(ns): contents = ns.contents if contents is not None: contents = contents.encode(locale.getpreferredencoding()) print(edit(filename=ns.path, contents=contents)) if __name__ == '__main__': import argparse ap = argparse.ArgumentParser() sp = ap.add_subparsers() cmd = sp.add_parser('get-editor') cmd.set_defaults(cmd=_get_editor) cmd = sp.add_parser('edit') cmd.set_defaults(cmd=_edit) cmd.add_argument('path', type=str, nargs='?') cmd.add_argument('--contents', type=str) ns = ap.parse_args() ns.cmd(ns)