Skip to content

Instantly share code, notes, and snippets.

View skinzor's full-sized avatar
🎯
Focusing

Robert skinzor

🎯
Focusing
  • Bucharest, Romania
View GitHub Profile
@skinzor
skinzor / linux-kernel-debugging.md
Created February 15, 2023 13:51 — forked from pdsouza/linux-kernel-debugging.md
linux kernel: debugging

Linux Kernel Debugging

Debugging an Oops

Let's say we have a kernel oops like in maruos/platform_external_lxc#2 (comment). Here's the relevant snippet:

[  289.238687] Unhandled fault: synchronous external abort (0x96000010) at 0xffffff800087a000
[  289.238853] Internal error: : 96000010 [#1] PREEMPT SMP
[ 289.239003] CPU: 0 PID: 4928 Comm: lxc-start Not tainted 3.10.73-g84d48e8-00002-gfb7b9c7 #1
@skinzor
skinzor / README.md
Created February 5, 2023 16:05 — forked from SebaUbuntu/README.md
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
@skinzor
skinzor / work-with-multiple-github-accounts.md
Created February 4, 2023 14:03 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@skinzor
skinzor / multiple-repository-and-identities-git-configuration.md
Created February 4, 2023 14:03 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@skinzor
skinzor / multiple_ssh_setting.md
Created February 4, 2023 14:03 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@skinzor
skinzor / flash-custom-rom-motog8power.md
Created February 2, 2023 21:36 — forked from agichim/flash-custom-rom-motog8power.md
Full guide to flash Moto G8 Power (sofiar)

Moto G8 Power Guide to Flash and Install a custom ROM

BEWARE:
I am not a developer. I put together this guide for my future self and for others. I had help from the Moto G8 Official Telegram channel community. I followed these steps to flash my own Moto G8 Power, except for the steps where I explicityl state I didn't follow myself. Software and tools also get updated over time so stuff here may get old.

For devs: if you think some stuff needs changing or updating or better written, let me know.

Contents:

How To Make A Working TWRP Device Tree For Your MediaTek Device & Start Building Them, Online

This Guide is tested on 64-bit mt6735/53 chipset device. It will also work on any 64-bit and 32-bit devices.

You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.

Note: This guide will be helpful for you if you have older mediatek devices (android-5.1 or android-6.0), but up-to-date devices can also work.

Update: This guide had a few typos and derps (Oops..), but I've tried to make it free of those now (Dated November 18, 2020)

Bonus: You can also use this tool by @SebaUbuntu, @yshalsager and @mauronofrio to auto generate the twrp tree. The tool is best if your device runs on android-9.0. The tools is still not 100% compatible to all devices, but I'll still recommend it and give it 8.5/10 in the scale of varsatility.

How To Make A Working TWRP Device Tree For Your MediaTek Device & Start Building Them, Online

This Guide is tested on 64-bit mt6735/53 chipset device. It will also work on any 64-bit and 32-bit devices.

You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.

Note: This guide will be helpful for you if you have older mediatek devices (android-5.1 or android-6.0), but up-to-date devices can also work.

Update: This guide had a few typos and derps (Oops..), but I've tried to make it free of those now (Dated November 18, 2020)

Bonus: You can also use this tool by @SebaUbuntu, @yshalsager and @mauronofrio to auto generate the twrp tree. The tool is best if your device runs on android-9.0. The tools is still not 100% compatible to all devices, but I'll still recommend it and give it 8.5/10 in the scale of varsatility.

@skinzor
skinzor / Bringup.md
Created January 29, 2023 13:07 — forked from mvaisakh/Bringup.md
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@skinzor
skinzor / config-highlight.cfg
Created September 29, 2020 05:20 — forked from jaimergp/config-highlight.cfg
Dark highlighting theme for Python IDLE based on SublimeText's Monokai color scheme
# Place this file inside your ~/.idlerc/ folder
# or paste its contents inside
# /path/to/python/idlelib/config-highlight.def
# Adapted from SublimeText's Monokai
[monokai]
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822