Skip to content

Instantly share code, notes, and snippets.

View rominf's full-sized avatar

Roman Inflianskas rominf

View GitHub Profile
@rominf
rominf / virt-manager.log
Created February 27, 2019 06:53
virt-manager.log
[Ср, 27 фев 2019 09:48:58 virt-manager 16292] DEBUG (cli:203) Launched with command line: /usr/share/virt-manager/virt-manager --debug --no-fork
[Ср, 27 фев 2019 09:48:58 virt-manager 16292] DEBUG (virt-manager:179) virt-manager version: 2.1.0
[Ср, 27 фев 2019 09:48:58 virt-manager 16292] DEBUG (virt-manager:180) virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.py'>
(virt-manager:16292): Gtk-WARNING **: 09:48:58.335: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(virt-manager:16292): Gtk-WARNING **: 09:48:58.335: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(virt-manager:16292): Gtk-WARNING **: 09:48:58.335: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated a
@rominf
rominf / ServerSelectionPage.qml
Created April 23, 2019 11:18
ServerSelectionPage.qml
Rectangle {
anchors.fill: context;
color: "#000";
Column {
anchors.fill: parent;
spacing: 10;
Row {
anchors.centerIn: parent;
@rominf
rominf / CameraSelectionPage.qml
Created April 25, 2019 12:21
CameraSelectionPage.qml
ScrollView {
anchors.fill: context;
ListView {
anchors.fill: parent;
spacing: 10;
model: ListModel {
id: camerasModel;
}
from pony import orm
import lmdb
env = lmdb.open('../conceptnet-lite-data/conceptnet-lmdb.db', map_size=16*1024*1024*1024, max_dbs=2)
start_db = env.open_db(b'start')
db = orm.Database()
class Label(db.Entity):
text = orm.Required(str)
language = orm.Required(str)
from pathlib import Path
db.bind(filename=str(Path('../conceptnet-lite-data/normalization-test.db').resolve()), provider='sqlite', create_db=True)
@rominf
rominf / systemd_dbus_start_and_wait_for_signal.py
Last active March 27, 2020 14:03
Start sshd service and wait for signal using DBus, pydbus, asyncio
# On Fedora run:
# $ sudo dnf install python3-pydbus
# Then run this script as root
from gi.repository import GLib
from asyncio import Event
from pydbus import SystemBus
import asyncio
import pydbus

Keybase proof

I hereby claim:

  • I am rominf on github.
  • I am rominf (https://keybase.io/rominf) on keybase.
  • I have a public key ASCaZaqs3xZqQUk5y8Wi4xK3fcWf7tGcUZ_SX0D-FpmpPAo

To claim this, I am signing this object: