- Prerequisites
- Step 1: Download the stock ROM for Xiaomi TV Box S 2nd Gen
- Step 2: Extract boot image from the OTA archive
- Step 3: Update the system with downloaded OTA archive
- Step 4: Patch boot image with Magisk
- Step 5: Unlock bootloader with
fastboot
- Step 6: Reboot to system and complete setup
#!/usr/bin/env pwsh | |
<# | |
.NOTES | |
============================================================ | |
Last Edit: 5/29/2021 | |
Created by: instance.id (https://github.com/instance-id) | |
Platform: Windows/Linux | |
Filename: unitytool.ps1 | |
PSVersion: Last tested with 7.2-preview5 |
#-------------------------------------------------------------------------------------------------------------- | |
# This has been updated and changed to include several new features. See the link below for updated version: -- | |
# https://gist.github.com/instance-id/3161cc2b5343db5bc3cef494d83a7449 ---------------------------------------- | |
#-------------------------------------------------------------------------------------------------------------- | |
# Replace folder paths in $projectLocations array (line 20) with your actual Unity project folder path(s) | |
# Usage: .\unityfixlayout.ps1 -Project MyProjectName | |
Param ( | |
[Parameter()] |
using UnityEngine; | |
public class GizmosExtensions | |
{ | |
private GizmosExtensions() { } | |
/// <summary> | |
/// Draws a wire arc. | |
/// </summary> | |
/// <param name="position"></param> |
using UnityEditor; | |
[InitializeOnLoad] | |
public static class EditorHelper | |
{ | |
#region Constructors | |
static EditorHelper() | |
{ | |
EditorApplication.wantsToQuit += OnEditorWantsToQuit; |
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.
The key for achieving this is to modify the EFI Variable PreviousBoot
with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740
, which rEFInd uses to store the last entry selected in the menu and, if using the +
default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.
/* | |
* Created by C.J. Kimberlin | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2019 | |
* | |
* 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 |