Script for resizing MTD partitions on a QNAP device in order to be available to upgrade from buster to bullseye

As explained by Marin Michlmayr, Debian bullseye support on kirkwood QNAP devices was dropped due to [mainly] the limited size of the Kernel partition (2MB). Indeed, Bullseye current kernel image (vmlinuz-5.10.0-8-marvell) is 2445216 bytes long (2.3MB) In addition, partition for initrd is also limited (9MB) which may lead to space issues. Hopefully, some space is still unused for Debian in QNAP 16MB NOR flash. An additional 3MB Rootfs2 partition is used by original QNAP firmware for its own purpose (install […]

Read more

Collection of scripts to pinpoint obfuscated code

Author: Tim Blazytko Automatically detect control-flow flattening and other state machines Description: Scripts and binaries to automatically detect control-flow flattening and other state machines in binaries. Implementation is based on Binary Ninja. Check out the following blog post for more information: Automated Detection of Control-flow Flattening Usage $ ./detect_flattening.py samples/finspy Function 0x401602 has a flattening score of 0.9473684210526315. Function 0x4017c0 has a flattening score of 0.9981378026070763. Function 0x405150 has a flattening score of 0.9166666666666666. Function 0x405270 has a flattening score […]

Read more

A python script to get a fancy paper title based on given DOI or PMID

pubmex.py is a script to get a fancy paper title based on given DOI or PMID (can be also combined with macOS Finder) Format of the title: a first author . a last author – (title(“dotted”) or your customed title) . PMID . journal . year . pdf e.g. Kelley.Scott.The.evolution.biology.shift.towards.engineering.prediction-generating.tools.away.traditional.research.practice.EMBORep.2008.pdf Nowadays, it’s not a big issue, with all Mendeley and other tools, however… I don’t want to put any PDF file collected on the way into my library, because then […]

Read more

Cool Bioinformatics Scripts With Python

You can use this script in two ways read tons of millions of P values from stdin # python zcat pval.txt.gz | qqplot.py -out test -title “QQ plot on the fly” # julia zcat pval.txt.gz | qqplot.jl –out test –title “QQ plot on the fly” warning : If you have 100 billion P values to process you should definitely use qqplot.jl instead of qqplot.py. The hourly processed lines of julia version is 3 billion while python is only 700 million […]

Read more

A Python scripts for detecting objects of any class in an image without knowing their label

Python TFLite scripts for detecting objects of any class in an image without knowing their label. Image taken from the OpenCV AI Kit – Lite, make sure to check it out: https://www.kickstarter.com/projects/opencv/opencv-ai-kit-oak-depth-camera-4k-cv-edge-object-detection ❗ ⚠️The object detector works better with images with few objects and it starts to fail in more complex scenes. The model is suitable for automatically labelling objects for custom object detection models. OpenCV, imread-from-url and tensorflow or tflite_runtime. Also, pafy and youtube-dl are required for youtube video […]

Read more
1 13 14 15 16 17 18