This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from asyncqt import QEventLoop, asyncSlot, asyncClose | |
| import sys | |
| import asyncio | |
| from PySide2.QtWidgets import ( | |
| QApplication, QWidget, QLabel, QLineEdit, QTextEdit, QPushButton, | |
| QVBoxLayout) | |
| from PySide2.QtCore import Signal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> a=lambda: (n:=4) | |
| >>> n | |
| 2 | |
| >>> a() | |
| 4 | |
| >>> n | |
| 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ]0;eri@eri-macro:~/Projects/2020/jsterm/python[eri@eri-macro python]$ cd ../../pinpad/sb_pilot/ | |
| ]0;eri@eri-macro:~/Projects/2020/pinpad/sb_pilot[eri@eri-macro sb_pilot]$ export LANG=ru_RU.KOI*[K8-R | |
| ]0;eri@eri-macro:~/Projects/2020/pinpad/sb_pilot[eri@eri-macro sb_pilot]$ sb_[1@.[1@/sb_pilot | |
| [?1049h[22;0;0t[1;24r(B[m[4l[?7h[39;49m[?25l[?1h=[39;49m[37m[40m[H[2J[8;26H(0[0;7m[39;49m[37m[40mlq[25bk(B(B[m[39;49m[37m[40m[9;26H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[9;53H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[10;26H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[10;53H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[11;26H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[11;53H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[12;26H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[12;53H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40m[13;26H(0[0;7m[39;49m[37m[40mx(B(B[m[39;49m[37m[40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| sema = asyncio.Semaphore(value=10) | |
| async def send(msg): | |
| print(msg) | |
| async def income(msg): | |
| if not sema.locked(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PySide2.QtWidgets import QApplication | |
| from PySide2.QtCore import QUrl | |
| import os | |
| import sys | |
| from PySide2.QtQml import QQmlApplicationEngine | |
| # sys.argv += ['--style', 'material'] | |
| app = QApplication(sys.argv) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch0_cpu=6 | |
| switch0_vlan1="0" | |
| switch0_vlan1_id=1 | |
| switch0_vlan2="1 2" | |
| switch0_vlan2_id=2 | |
| switch0_vlan3="3 4" | |
| switch0_vlan3_id=317 | |
| switch0_port0_pvid=${switch0_vlan1_id} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| menuentry 'Kali GNU/Linux' --class debian --class gnu-linux --class gnu --class os { | |
| load_video | |
| insmod gzio | |
| insmod part_gpt | |
| insmod ext2 | |
| set root='hd0,gpt3' | |
| echo 'Loading Linux ...' | |
| linux /debian/kali/live/vmlinuz live-media-path=/debian/kali/live/ boot=live components splash username=root hostname=kali persistence | |
| echo 'Loading initial ramdisk ...' | |
| initrd /debian/kali/live/initrd.img |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt5.QtDBus import QDBusAbstractInterface, QDBusConnection | |
| class Properties(QDBusAbstractInterface): | |
| def __init__(self, parent=None): | |
| super().__init__(parent.service(), parent.path(), | |
| 'org.freedesktop.DBus.Properties', parent.connection(), parent) | |
| def __getitem__(self, name): | |
| r = self.call('Get', self.parent().interface(), name) | |
| if r: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ls kernel-module* | |
| kernel-module-6lowpan-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-8021q-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-8139cp-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-8139too-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-act-mirred-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-af-key-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-ah4-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-alx-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk | |
| kernel-module-anubis-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| postgres=# create function lala () returns numeric LANGUAGE plpgsql as $$ begin return 1; end;$$; | |
| CREATE FUNCTION | |
| postgres=# select lala(); | |
| lala | |
| ------ | |
| 1 | |
| (1 row) | |
| postgres=# select "lala"(); | |
| lala |