Skip to content

Instantly share code, notes, and snippets.

View FreePhoenix888's full-sized avatar
Empty your mind, be formless, shapeless - like water

FreePhoenix888

Empty your mind, be formless, shapeless - like water
View GitHub Profile
@FreePhoenix888
FreePhoenix888 / xiaomi_stock_rom_messages_do_not_work.md
Last active December 21, 2025 09:56
Xiaomi Stock Rom Mesasges Do Not Work

If you find out you do not get messages and cannot send them when you are on a stock rom (at least it happened to me when I flashed stock rom and locked bootloader)

Open the Phone app and dial: ##4636## Go to Phone Information. Scroll to the bottom to find SMSC. Tap Refresh. If it stays blank, you need to find your carrier's SMSC number (Google "Carrier Name SMSC number") and enter it there, then tap Update

Try removing SMS permission for Message app and granting it again

@FreePhoenix888
FreePhoenix888 / how_to_unlock_bootloader_on_xiaomi_phone.md
Created December 21, 2025 08:25
How to relock bootloader on xiaomi phone

Guide: Returning to Official Stock MIUI and Locking Bootloader

Device Example: Redmi Note 8 (ginkgo)

This guide provides a clean, safe path to restore your Xiaomi device to factory settings and re-lock the bootloader.


⚠️ CRITICAL: Security & Anti-Brick Precautions

1. Region Mismatch = Hard Brick

@FreePhoenix888
FreePhoenix888 / download_media_under_cursor.js
Created April 25, 2025 09:16
Download Media Under Cursor
// ==UserScript==
// @name Download Media Under Cursor
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Downloads image or video under your mouse cursor when you press 'D'
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
@FreePhoenix888
FreePhoenix888 / add_all_suggested_meets_to_watcher.js
Last active September 28, 2025 08:28
Add all suggested meets to watcher
// Paste this in your browser console
const suggestedAddButton = document.querySelectorAll('.suggestion__accept-btn')
for (let button of suggestedAddButton) {
button.click()
}
// BE CAREFUL! Make sure you have only 1 project suggesion when clicking "Add" button
const searchListElementArray = [...document.body.querySelectorAll('.list-element')]
for (let searchListElement of searchListElementArray) {
searchListElement.click()
}
@FreePhoenix888
FreePhoenix888 / jira_get_task_link_name.js
Created April 1, 2025 13:58
Jira Get Task Link Name
@FreePhoenix888
FreePhoenix888 / jira_in_progress_task_list.js
Created April 1, 2025 13:58
Jira Get In Progress Task List
// ==UserScript==
// @name Task List Window
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description Show task list in a fixed window when pressing F1
// @author You
// @match https://rmrkz.atlassian.net/jira/your-work
// @grant none
// ==/UserScript==
@FreePhoenix888
FreePhoenix888 / sourceforge-files-get-sorted-name-and-downloads
Created March 2, 2025 07:13
Sourceforge Files - Get sorted name and downloads from
let data = [];
document.querySelectorAll("#files_list tbody tr").forEach(row => {
let name = row.querySelector("th .name")?.innerText.trim();
let downloadsText = row.querySelector(".stats .count")?.innerText.trim();
if (name && downloadsText) {
let downloads = parseInt(downloadsText.replace(/,/g, ""), 10); // Remove commas & convert to number
data.push({ name, downloads });
}
@FreePhoenix888
FreePhoenix888 / exportWatcherData.js
Last active December 12, 2024 08:22
Export watcher data
// Open the watcher website and execute this command in the browser console
const allData = []
const dayColumns = document.querySelectorAll(`.day`)
for (const dayColumn of dayColumns) {
const date = dayColumn.querySelector(`.day-header__date`)
const loggedTimes = dayColumn.querySelectorAll(`.logged-time`)
for (const loggedTime of loggedTimes) {
const subtitle = loggedTime.querySelector(`.logged-time-header__subtitle`).children[0]
const time = loggedTime.querySelector(`.logged-time-header__time`)
@FreePhoenix888
FreePhoenix888 / smartphone_rom_installation_instruction.md
Last active September 12, 2024 09:15
Smartphone ROM installation instruction

Clean Flash

Warning: your data will be removed so backup it to other storage, for example your computer Warning: read the whole instruction before doing anything, especially if you do this for the first time

Unlock bootloader

I have unlocked my bootloader a lot of time ago, so I am not really able to write guide for it right now :) Google it

Install Custom Recovery (TWRP)

  • Reboot to bootloader: Use any of these methods:
    • Use this command on your computer: adb reboot bootloader
  • Press Power+Volume Down (can be different for different devices)
@FreePhoenix888
FreePhoenix888 / find_and_cat.sh
Last active July 19, 2024 11:25
Find and cat bash
find . -type f ! -path '*/.*' -exec sh -c 'printf "\n"; echo {}:; cat {}' \; > output.txt