Skip to content

Instantly share code, notes, and snippets.

View mmtrt's full-sized avatar

Taqi Raza mmtrt

  • Pakistan
  • 04:17 (UTC +05:00)
View GitHub Profile
@ThioJoe
ThioJoe / Icon-Upscale.bat
Last active July 1, 2024 08:19
Low-Res Icon Upscaler Batch Script
@echo off
setlocal enabledelayedexpansion
rem | Lines beginning with 'rem' are comments
rem -------------------------------------------------------------------------------------------
rem | "Icon Upscaler" Script by ThioJoe: https://github.com/ThioJoe
rem | I created this script specifically for upscaling very low res (such as 256x256) icons like those in Windows. It uses a combination of Image Magick (to first improve the transparency edges) and the RealCugan-ncnn-vulkan upscaler which seems to perform the best for this use case. Of course, the script can be used for all sorts of images, but I have found this to yield the best results of any other method, and better than just using an upscaler alone.
@Kabouik
Kabouik / Droidian-SFOS_dual_boot.md
Last active April 20, 2024 15:14
Dual-booting Droidian and SailfishOS on the F(x)tec Pro1

Dual-booting Droidian and SailfishOS on the F(x)tec Pro1

Author: kabouik but all credits to g7


Known issues related to dual-booting, as of 2023-09-10:

  • Switching from Droidian to SailfishOS can be done directly on the phone, but from SailfishOS to Droidian requires a computer.
  • Nothing else so far, yay.

Foreword

#!/usr/bin/env bash
# Original sequences to search for.
ORIGINAL_SEQUENCES=('0a2450292801080a087d0a1b28010035' '48010035822240b980420491e10313aa')
# Patch sequences to replace the original sequences with.
PATCH_SEQUENCES=('0a2450292801080a087d0a1b1f2003d5' '1f2003d5822240b980420491e10313aa')
function log() {
local colors=( "\e[34m" "\033[1;33m" "\033[1;31m" "\033[1;32m" )
@neilchetty
neilchetty / Sign-Android-Build.md
Last active June 23, 2024 10:59
Guide To Sign Android Build Update With Private Release Keys

Index

  1. Generating signing keys (Part 1)
  2. Generating signing keys (Part 2)
  3. Making signed build (recovery)
  4. Making signed build (fastboot)
  5. Making incremental update

Requirements

All you need is an android buildsystem (I would recommend you to use lineageos)

@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active July 5, 2024 12:13
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@ishad0w
ishad0w / microsoft_edge_uninstaller_21h1_ltsc.bat
Last active June 30, 2024 09:26
Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
@echo off
@title Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
ver
echo+
goto check_admin_permissions
:check_admin_permissions
echo Script must Run as Administrator! Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
@maotovisk
maotovisk / native-file-manager-tutorial-en.md
Last active March 2, 2024 23:06
Integrating native file explorer on wine with linux.

Integrating native file explorer on wine with linux.

This is mostly aimed at osu! mappers/storyboarders who need an easy way to access osu! beatmap folders through wine.

Introduction

This is a quick tutorial on how you can edit some wine registry files to make wine open the native linux file explorer when clicking the Open folder menu on whatever application uses it, since the explorer.exe application doesn't integrate that well with the linux environment.

The main use-case for this workaround is the case of those who need to work with a high bandwidth of files being moved around and shared/edited/whatever it's needed to do with it. eg. osu!mappers

Doing it...

1. Getting the useful info

@SebaUbuntu
SebaUbuntu / README.md
Last active June 27, 2024 08:09
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@EduApps-CDG
EduApps-CDG / Building Linux Kernel With Android.md
Last active May 26, 2024 00:13
A guide of How to Build Linux Kernel using android

How to Build Linux Kernel with Android

This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.

Minimum Requiriments:

  • 4GB of free space (2GB if delete the temp files)
  • Android 5.0

Preparing the Environment

You need to install Termux

@Venemo
Venemo / mesa-howto.md
Last active June 3, 2024 19:52
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Building mesa

Overview