Skip to content

Instantly share code, notes, and snippets.

View rfletchr's full-sized avatar
:shipit:
Code

Rob rfletchr

:shipit:
Code
View GitHub Profile
@rfletchr
rfletchr / annotation.py
Last active June 12, 2024 23:19
Annotation WIP
"""
A very basic example of a image annotation tool using a QWidget as a viewport.
This implements
- Viewport panning
- Viewport zooming (maintaing Point Of Interest)
- Basic draggable handles / gizmos
"""
from PySide6 import QtCore, QtGui, QtWidgets
@rfletchr
rfletchr / capture_screen.py
Created March 28, 2023 22:25
screen capture using pyside2
"""
This example shows how to capture a screenshot of a specific area of the screen.
Warning: This has not been tested with multiple monitors.
Example:
to capture the entire the current screen::
from PySide2 import QtCore, QtWidgets
@rfletchr
rfletchr / validation.py
Created February 24, 2023 11:17
Simple Validation Framework
import enum
import time
import textwrap
import qtawesome
from PySide2 import QtCore, QtWidgets, QtGui
__ICONS = {}
@rfletchr
rfletchr / Makefile
Last active June 29, 2021 11:13
record all open system calls of a program by shimming the open function via LD_PRELOAD
CC=gcc
all: src/shim.c
$(CC) -shared -fPIC -o shim.so src/shim.c -ldl
@rfletchr
rfletchr / decompile_guide.md
Last active June 6, 2019 06:26
Decompile a 'compiled' python api.

Setup

Ensure that uncomplye6 and black are installed. use conda, venv or just pip install to user..

pip install --user black uncompyle6

Decompile

cd