Skip to content

Instantly share code, notes, and snippets.

eMMC启动介质

家所最为熟知的分区方式同时也是最主流的主要有两种:MBR(Master Boot Record)和GPT(GUID Partition Table)。前者应用于绝大多数使用BIOS引导的PC设备(苹果使用EFI的方式),而后者主要是针对MBR的一些缺点进行了改进同时还可以兼容MBR并且支持2TB以上的存储(MBR不支持2TB以上的存储设备)。Android 2.x.x 版本上使用的是MBR,4.0版本以后就是使用的GPT分区方式。EMMC的分区有一些是AP不能修改的(如BOOT1、BOOT2和RPMB分区),有一些是可以通过特定的命令和寄存器就可以修改的(如Enhanced Partition和GPAP)

1. FLASH分区类型

eMMC 标准中,可将内部的 Flash Memory 划分为 4 类区域,最多可以支持 8 个硬件分区,如下所示:

001

@battenr
battenr / confounder_and_collider.R
Created September 19, 2024 18:03
To Adjust or Not Adjust? (Confounder and Collider)
# Title: A collider and a confounder - To adjust or not adjust?
# Description: Should we adjust for a variable if it's both a collider and a confounder?
# The idea for this came from an article I recently read - Liu et al.(2012)
# https://academic.oup.com/aje/article/176/10/938/92975#246684420
# The idea for this code was to keep the situation simple to start. It can be built upon
# rather easily. A few things to try altering would be the strength of the causal relationships,
# continuous vs binary vs TTE variables, more/less variables, etc.
@luigiMinardi
luigiMinardi / tex-colors.md
Last active September 20, 2024 06:53
Github markdown colors (Using Tex and the github MathJax support)

Small warning for everyone that are thinking if using Tex colors is a good idea or not

  • 2023-05-02 - Since a few days ago \colorbox and \fcolorbox are broken and Github did't talk about if it's a temporary thing or if it will not be added back.
    • 2024-01-04 - Since it has not being added back I deduce that it will never be so I removed all mentions to it on the rest of the gist.
  • 2023-09-29 - Tex seems to not work on h1 to h6 anymore (markdown #'s)
    • 2024-01-04 - Now it works again, I'll keep the message for a while to remember that it may change again in the future

As you can se with the above message(s) Tex may not be very stable and may not be an option to you as of the dates expressed above. You can also check other tex problems here.

Github released Tex support and colors* to the markdown and you din't realized

@ih2502mk
ih2502mk / list.md
Last active September 20, 2024 06:53
Quantopian Lectures Saved
@jamiephan
jamiephan / README.md
Last active September 20, 2024 06:54
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@f1shy-dev
f1shy-dev / best_SAE_trick.md
Last active September 20, 2024 06:52
apple intelligence tutorial

the sneakyf1shy apple intelligence tutorial v1.7

This is NOT just the "new UI, old siri", it is much more complicated (actually getting the models downloaded) and probably not worth it.

⚠️ Prepare to be disappointed and annoyed, and have your time wasted! ⚠️

  • Writing Tools, Memories, Reduce Interruptions, Image Eraser (basically everything) doesnt work
  • All you get is like a slightly better siri (via the new models) and the new UI
    • Like one thing I know proving it works/is a different model is that you can ask about the iphone guide/etc which they showed off at WWDC.
  • This will temporarily break faceid - fixable while keeping the AI, look below
  • Modifying the gestalt has a risk of bricking your device if done wrong.
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active September 20, 2024 06:51
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@mxalbert1996
mxalbert1996 / Scrollbar.kt
Last active September 20, 2024 06:49
Modifiers to draw scrollbars in Jetpack Compose
/*
* MIT License
*
* Copyright (c) 2022 Albert Chang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@Heipry
Heipry / atajos-VSCode.md
Last active September 20, 2024 06:48
Atajos globales y personalizados de VSCode para teclado uk y es

Vscode Atajos

  • Mover linea - Alt + ↑ / ↓
  • Copiar linea - Shift + Alt + ↑ / ↓
  • Seleccionar siguiente aparición - Ctrl + D
  • Seleccionar todas las apariciones - Ctrl + Shift + L
  • Crear múltiples cursores - Ctrl + Alt+ ↑ / ↓
  • Selección multiple - Alt + Click
  • Mover bloque - Seleccionar . Alt + ↑ / ↓
  • Copiar bloque - Seleccionar . Shift + Alt + ↑ / ↓