Skip to content

Instantly share code, notes, and snippets.

View ZanyXDev's full-sized avatar
💭
99 little bugs in the code. Take 1 down, patch it around, 117 bugs in the code

Zany XDev ZanyXDev

💭
99 little bugs in the code. Take 1 down, patch it around, 117 bugs in the code
View GitHub Profile
@ZanyXDev
ZanyXDev / SymbianDev-ru.md
Created April 4, 2025 15:48 — forked from artem78/SymbianDev-ru.md
Разработка под Symbian OS

Полезные ресурсы по разработке под Symbian

  1. Небольшой сайт, содержащий ссылки на SDK и другие полезные ресурсы - https://mrrosset.github.io/Symbian-Archive/index.html
  2. Список активных разработчиков под Symbian - mrRosset/Symbian-Archive#10
  3. Чат - https://discord.gg/5Bm5SJ9 или https://discord.com/channels/431429574975422464/743412813279526914
  4. Презентация по основам Symbian - http://www.cs.rug.nl/~aiellom/images/SymbianOS.pdf
  5. Файлы:
  • моя коллекция: [h
public class PictureCropContract extends ActivityResultContract<PictureCropContract.CropParam,Bitmap> {
static public class CropParam {
public Uri uri;
// does not work for the sizes I need together with the key return-data = true
public int width = 2480;
public int height = 3507;
}
@NonNull
@Override
@ZanyXDev
ZanyXDev / Qt5.15 configure options
Created January 10, 2024 15:37 — forked from h3ssan/Qt5.15 configure options
Qt 5.15 available configure options
Usage: configure [options] [assignments]
Configure understands variable assignments like VAR=value on the command line.
Each uppercased library name (obtainable with -list-libraries) supports the
suffixes _INCDIR, _LIBDIR, _PREFIX (INCDIR=PREFIX/include, LIBDIR=PREFIX/lib),
_LIBS, and - on Windows and Darwin - _LIBS_DEBUG and _LIBS_RELEASE. E.g.,
ICU_PREFIX=/opt/icu42 ICU_LIBS="-licui18n -licuuc -licudata".
It is also possible to manipulate any QMAKE_* variable, to amend the values
from the mkspec for the build of Qt itself, e.g., QMAKE_CXXFLAGS+=-g3.

Orientation overview in Qt

Terms

  • Auto-rotation: the process where the platform will read sensor data about the physical screen orientation and apply that to the screen properties, so that eg. a screen in a physical landscape orientation will have an observable width > height.
  • Orientation-lock: More or less granular configuration of which orientations the platform is allowed to auto-rotate into

APIs

  • QScreen::nativeOrienation: the fixed standard-orientation of the physical screen, eg the orienation where the logo makes sense. Typically landscape for desktop screens. Never changes.
@ZanyXDev
ZanyXDev / socks_over_ssh_github.md
Last active November 13, 2022 13:34
Access github.com over ssh socks proxy

ssh over socks

Start socks proxy ssh -D 1080 -fN -C username@proxy_ip

add git global config

git config --global http.proxy 'socks5://127.0.0.1:1080'

works both http and https

@ZanyXDev
ZanyXDev / README.md
Created June 18, 2022 07:55 — forked from plugnburn/README.md
NokiaTool - simple interface Bash script for MediaTek-based Nokia simple phones

NokiaTool: control MediaTek-based Nokia phones from your PC

Overview

NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.

This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.

@ZanyXDev
ZanyXDev / mount_qcow2.md
Created March 23, 2020 15:00 — forked from nixuser/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <(