Skip to content

Instantly share code, notes, and snippets.

View lovmoon3k's full-sized avatar
💭
I may be slow to respond.

LovMoon3k lovmoon3k

💭
I may be slow to respond.
View GitHub Profile
@mcxiaoke
mcxiaoke / miui-safe-disabled-apps.md
Last active July 31, 2024 01:37
MIUI Safe Disabled Apps (MIUI 13)

Intro

Disable app pm disable-user app.package.name

Re-enable it pm enable app.package.name

Uninstall app Sometimes uninstall command may not work without -k option on un-rooted devices

import os
sublime_binary_path = "/tmp/sublime_text" # FIXME: this is the absolute path to writable sublime_text binary.
version_magic_string = "4126"
sz_magic_string = 4
version_magic_string_offset = 0x0002d78a # (Real offset from xxd)
is_file_read = os.access(sublime_binary_path, os.R_OK)
if not is_file_read:
@opastorello
opastorello / sublime text 4143 license key
Last active April 1, 2025 23:17
sublime text 4143 license key
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
public static class AdbHelper
{
public static string AdbPath = "adb.exe";
public static MemoryStream ExecuteCommandBuffer(string command)
{
using(Process process = new Process())
{
process.StartInfo.FileName = AdbPath;
process.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();
@thinhbuzz
thinhbuzz / download.js
Last active January 7, 2024 05:15
Download all photos from facebook Page
(async () => {
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
function getPageId() {
const tags = Array.from(
document.body.querySelectorAll("script:not([src])")
);
@nhannt201
nhannt201 / readme.md
Created July 11, 2021 08:52 — forked from mattiasghodsian/readme.md
How to create a Windows application Installer with NSIS

Nullsoft Scriptable Install System is also known as NSIS open-source system to create Windows application installers. NSIS is a script-based system allowing you to create the logic behind your installer/setup file in a complex way to install tasks. NSIS offers plug-ins and other scripts, for example, to download/install 3rd-party files or communicate with Windows.

The tutorial application

This tutorial will guide you through installing and creating your first Windows installer with Nullsoft Scriptable Install System and how to compile your project. Captura Portable will be used as "our application" for the sake of this tutorial.

Installation

Head to NSIS official site and download the latest release and install it. Run NSIS and you will be welcomed with a menu like below, It's always a good practice to read the Documentation before jumping in t

@IT-Delinquent
IT-Delinquent / materialDesignStyleToggltButtonInWPFandXAML.xaml
Created June 22, 2021 16:17
materialDesignStyleToggltButtonInWPFandXAML
<Style TargetType="{x:Type ToggleButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Viewbox>
<Border x:Name="Border" CornerRadius="10"
Background="#FFFFFFFF"
Width="40" Height="20">
<Border.Effect>
<DropShadowEffect ShadowDepth="0.5" Direction="0" Opacity="0.3" />
@IT-Delinquent
IT-Delinquent / iOSStyleToggleButtoninWPFandXAML.xaml
Last active June 21, 2023 01:45
iOS Style Toggle Button in WPF and XAML
<Style TargetType="{x:Type ToggleButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Viewbox>
<Border x:Name="Border" CornerRadius="10"
Background="#FFFFFFFF"
Width="40" Height="20">
<Border.Effect>
<DropShadowEffect ShadowDepth="0.5" Direction="0" Opacity="0.3" />
@tatiblockchain
tatiblockchain / app.py
Created April 20, 2021 05:25
Facebook Messenger API Python Code
from flask import Flask, request
import requests
import json
import config
app = Flask(__name__)
app.config['SECRET_KEY'] = 'enter-your-app-secret-key'
@itsjwala
itsjwala / redmi8.txt
Last active May 9, 2024 19:22
Stuff I do on Dad's Redmi 8
https://kolappan.com/blog/2020/debloating-redmi-8/
find package using this
pm list packages -f | grep PACKAGE
uninstall package
130|olive:/ $ pm uninstall com.miui.android.fashiongallery
Failure [-1000]