Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
gi /
overrides /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
Dee.py
6.77
KB
-rw-r--r--
GdkPixbuf.py
1.68
KB
-rw-r--r--
Gdk.py
15.71
KB
-rw-r--r--
Gedit.py
3.05
KB
-rw-r--r--
GIMarshallingTests.py
2.19
KB
-rw-r--r--
Gio.py
18.34
KB
-rw-r--r--
GLib.py
29.2
KB
-rw-r--r--
GObject.py
23.65
KB
-rw-r--r--
Gtk.py
61.43
KB
-rw-r--r--
IBus.py
8.23
KB
-rw-r--r--
__init__.py
12.52
KB
-rw-r--r--
keysyms.py
1.67
KB
-rw-r--r--
Pango.py
1.73
KB
-rw-r--r--
Unity.py
4.65
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Unity.py
from gi.overrides import override from gi.importer import modules import threading import sys Unity = modules['Unity']._introspection_module from gi.repository import GLib __all__ = [] class ScopeSearchBase(Unity.ScopeSearchBase): def __init__(self): Unity.ScopeSearchBase.__init__(self) def do_run_async(self, callback, callback_data=None): def thread_method(): try: self.run() finally: callback(self) t = threading.Thread(target=thread_method, name="python-search-thread") t.start() class ResultPreviewer(Unity.ResultPreviewer): def __init__(self): Unity.ResultPreviewer.__init__(self) def do_run_async(self, callback, callback_data=None): def thread_method(): preview = None try: preview = self.run() finally: callback(self, preview) t = threading.Thread(target=thread_method, name="python-preview-thread") t.start() class ResultSet(Unity.ResultSet): def __init__ (self): Unity.ResultSet.__init__(self) def add_result(self, *args, **kwargs): if len(args) > 0: Unity.ResultSet.add_result(self, *args) elif len(kwargs) > 0: result = kwargs_to_result_variant(**kwargs) Unity.ResultSet.add_result_from_variant(self, result) def kwargs_to_result_variant(**kwargs): uri = None icon = "" category = 0 result_type = 0 mimetype = None title = None comment = "" dnd_uri = None metadata = {} for col_name, value in kwargs.items(): if col_name == "uri": uri = value elif col_name == "icon": icon = value elif col_name == "category": category = value elif col_name == "result_type": result_type = value elif col_name == "mimetype": mimetype = value elif col_name == "title": title = value elif col_name == "comment": comment = value elif col_name == "dnd_uri": dnd_uri = value else: if isinstance(value, GLib.Variant): metadata[col_name] = value elif isinstance(value, str): metadata[col_name] = GLib.Variant("s", value) elif isinstance(value, int): metadata[col_name] = GLib.Variant("i", value) elif sys.version_info < (3, 0, 0): # unicode is not defined in py3 if isinstance(value, unicode): metadata[col_name] = GLib.Variant("s", value) result = GLib.Variant("(ssuussssa{sv})", (uri, icon, category, result_type, mimetype, title, comment, dnd_uri, metadata)) return result def dict_to_variant(metadata_dict): metadata = {} for name, value in metadata_dict.items(): if isinstance(value, GLib.Variant): metadata[name] = value elif isinstance(value, str): metadata[name] = GLib.Variant("s", value) elif isinstance(value, int): metadata[name] = GLib.Variant("i", value) elif sys.version_info < (3, 0, 0): # unicode is not defined in py3 if isinstance(value, unicode): metadata[name] = GLib.Variant("s", value) return GLib.Variant("a{sv}", metadata) class ScopeResult(Unity.ScopeResult): @staticmethod def create(*args, **kwargs): if len(kwargs) > 0: result = kwargs_to_result_variant(**kwargs) return Unity.ScopeResult.create_from_variant(result) return Unity.ScopeResult.create(*args) class SearchContext(Unity.SearchContext): @staticmethod def create(search_query, search_type, filter_state, metadata_dict, result_set, cancellable): context = Unity.SearchContext.create(search_query, search_type, filter_state, None, result_set, cancellable) if metadata_dict and len(metadata_dict) > 0: metadata_variant = dict_to_variant(metadata_dict) context.set_search_metadata(Unity.SearchMetadata.create_from_variant(metadata_variant)) return context ScopeSearchBase = override(ScopeSearchBase) __all__.append('ScopeSearchBase') ResultPreviewer = override(ResultPreviewer) __all__.append('ResultPreviewer') ResultSet = override(ResultSet) __all__.append('ResultSet') ScopeResult = override(ScopeResult) __all__.append('ScopeResult') SearchContext = override(SearchContext) __all__.append('SearchContext')
Close