Skip to content

Instantly share code, notes, and snippets.

View MondoGao's full-sized avatar

MondoGao MondoGao

View GitHub Profile
@MondoGao
MondoGao / android-backup-apk-and-datas.md
Created August 29, 2025 07:52 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@MondoGao
MondoGao / glass.html
Created June 11, 2025 05:02 — forked from rebane2001/glass-with-controls.html
glass effect test css/svg thing (messy) - demo: https://codepen.io/rebane2001/details/OPVQXMv
<div style="position:absolute;top:-999px;left:-999px">
<svg
width="200"
height="200"
viewBox="0 0 220 220"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">
<feImage xlink:href="data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='50' y='50' width='100' height='100' rx='25' fill='%230001' /%3E%3Crect x='50' y='50' width='100' height='100' rx='25' fill='%23FFF' style='filter:blur(5px)' /%3E%3C/svg%3E" x="0%" y="0%" width="100%" height="100%" result="thing9" />
@MondoGao
MondoGao / Makefile
Last active September 22, 2023 04:24
Compile XV6 (i386) Version on MacOS (Intel)
# Modify from https://github.com/ashr123/XV6-MacOS-Makefile:
#
# - Temporarily remove -Werror to stop propogate `infinite recursion detected`
# error since we're not allowed to modify other programs' code.
#
# Also see: https://github.com/mit-pdos/xv6-riscv/issues/125
# Compile XV6 (i386) Version on MacOS (Intel)
#
# 1. Install [homebrew](https://brew.sh/).
@MondoGao
MondoGao / AuthHookLaunch.cpp
Created January 3, 2022 12:40
Specialized MapleStory DLL Injector
#include <Windows.h>
#include <iostream>
#include <io.h>
#define EXENAME "MapleStory.exe"
#define EXEARGS " GameLaunching"
#define DLLNAME "AuthHook.dll"
#ifdef UNICODE
# undef UNICODE
@MondoGao
MondoGao / ffmpeg-wrapper
Created October 3, 2021 17:35 — forked from BenjaminPoncet/ffmpeg-wrapper
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support (Installation instructions in 1st comment)
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
" =======================================
" plugin section begins
" =======================================
" <vundle> ------------------------
" https://github.com/gmarik/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@MondoGao
MondoGao / cVimrc
Last active November 23, 2018 10:34
cVimrc
set noautofocus
set smoothscroll
set autoupdategist
let scrollstop = 100
let completionengines = ['google', 'baidu']
let searchengine baidu = 'https://www.baidu.com/s?wd=%s'
let blacklists = []
let barposition = 'top'
@MondoGao
MondoGao / TerminalVim.scpt
Last active December 6, 2018 15:59 — forked from charlietran/TerminalVim.scpt
Open file in iTerm vim/neovim for MacOS High Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
/**
*
* @param str 待匹配字符串
* @param pattern 模式串
*/
const isMatch = (str, pattern) => {
let strArr = str.split('')
let patArr = pattern.split('')
strArr.pointer = 0
@MondoGao
MondoGao / hudbt-function-donate-button.js
Created March 18, 2016 13:18
hudbt - 捐赠按钮数额切换
$(function() {
addDonateChangeButton();
});
var flagDonate = 0;
function addDonateChangeButton() {
var $donateChangeButton = $('<a></a>').addClass('newButtons').html('太少不捐!').attr({
'title': '切换捐赠数额',
'href': 'javascript:'