Skip to content

Instantly share code, notes, and snippets.

View sayo9394's full-sized avatar
๐Ÿ™ƒ
Chilling!

Simon sayo9394

๐Ÿ™ƒ
Chilling!
View GitHub Profile
@sayo9394
sayo9394 / pyqt_dbus.py
Created August 17, 2018 07:56 — forked from dpineiden/pyqt_dbus.py
PyQt example with Dbus, asyncio and multiprocessing. Send data using DBus standar
"""
Example with Signal-Slot system from QT
When generate data, sends and load on the Gui's text widget
"""
import sys
from PyQt5.QtCore import QObject, pyqtSignal, QSharedMemory
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QMainWindow
@sayo9394
sayo9394 / CMakeLists.txt
Created January 21, 2019 05:12 — forked from magthe/CMakeLists.txt
Complete example of D-BUS client and server using Qt5 and CMake.
cmake_minimum_required(VERSION 3.5)
project(DBusTest)
find_package(Qt5 CONFIG REQUIRED Core DBus)
set(prog_SRCS my.test.Calculator.xml)
qt5_generate_dbus_interface(Calc.hh
my.test.Calculator.xml
OPTIONS -A
)
@sayo9394
sayo9394 / changing window size in Android
Last active April 19, 2022 05:31
Decreasing Android Display Size as Dead Area Workaround
# first get the window size
> .\adb.exe shell wm size
Physical size: 1440x3200
# Second change to lower size depending on dead area
> .\adb.exe shell wm size 1440x3100
@sayo9394
sayo9394 / ip_forward.md
Created April 19, 2022 05:08 — forked from tzermias/ip_forward.md
Forward traffic from wlan0 to eth0 interface

Forward traffic from a laptop's eth0 to wlan0

###To laptop

Specify an IP address to eth0 (here 192.168.56.1)

sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0