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
@lovmoon3k
lovmoon3k / keyevents.json
Created May 15, 2023 23:14 — forked from arjunv/keyevents.json
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@lovmoon3k
lovmoon3k / ffmpeg_tuts.md
Created May 15, 2023 08:17 — forked from tingplenting/ffmpeg_tuts.md
ffmpeg cli for youtube

Extract audio from a YouTube video file

ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3

Cut 3s length

ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
@lovmoon3k
lovmoon3k / http_client_get.cc
Created May 2, 2023 13:01 — forked from AhnMo/http_client_get.cc
Wininet HTTP Client Example
#include <windows.h>
#include <wininet.h>
#include <stdio.h>
#pragma comment (lib, "Wininet.lib")
int main(int argc, char *argv[]) {
HINTERNET hSession = InternetOpen(
L"Mozilla/5.0", // User-Agent
@lovmoon3k
lovmoon3k / Quadcopter.md
Created May 2, 2023 02:44 — forked from exocode/Quadcopter.md
My personal cheat sheet for UAV FPV and Betaflight. Everything you need!

Quadcopter and Betaflight cheat sheet

Introduction

On my yourney though hundreds of videos, tutorials and manuals (Bardwell, UAV Tech, JohnnyFPV, Mr. Steele, Le Drib, RotorRiot (sorry, for the missed ones) and wrote down their suggestions). This is the result of my notes. It should provide the least necessary but most compressed information to start tuning and setting your Quadcopter. In my case I use the widely spread Taranis X7 remote control.

I am a freestyle pilot, so keep in mind, that these settings are in this scope (more smooth, softer flight behaviour).

Remote Control (Taranis X7)

@lovmoon3k
lovmoon3k / bloatware-remover-redmi-note-9-s.sh
Created May 1, 2023 00:50 — forked from ethicnology/bloatware-remover-redmi-note-9-s.sh
bloatware remover for xiaomi redmi note 9 s
# inspired by https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html
pm uninstall --user 0 com.xiaomi.mipicks #GetApps - app store like Google Play from Xiaomi. The most annoying one, periodically shows advertisement.
pm uninstall --user 0 com.miui.msa.global #MIUI Ad Services - also responsible for showing ads.
pm uninstall --user 0 com.miui.cloudservice #Cloud
pm uninstall --user 0 com.miui.cloudbackup #Cloud Backup
pm uninstall --user 0 com.xiaomi.glgm #Games
pm uninstall --user 0 com.xiaomi.payment #Mi Credit
pm uninstall --user 0 cn.wps.xiaomi.abroad.lite #Mi DocViewer(Powered by WPS Office)
pm uninstall --user 0 com.xiaomi.midrop #Mi ShareMe
pm uninstall --user 0 com.miui.yellowpage #Mi YellowPages
@lovmoon3k
lovmoon3k / nabu_eea_debloat.cmd
Created May 1, 2023 00:47 — forked from opus-x/nabu_eea_debloat.cmd
Debloat and speed-up Xiaomi Pad 5 by disabling apps and limiting apps starting in the background (EU model), Tested and working but to be finetuned.
@echo off
rem usb connection
echo =======================================
echo Starting Android Debug Bridge Daemon...
echo =======================================
2>nul adb kill-server
adb start-server
echo | set /p="Checking for a connected device... "
>nul adb get-state
@lovmoon3k
lovmoon3k / discord-verification-workarounds.md
Created April 29, 2023 16:53
Discord E-Mail & Phone Number/SMS Verification Workarounds

Discord E-Mail & Phone Number/SMS Verification Workarounds

Info

Useful links:

As some of these sites are a bit sketchy, make sure to keep privacy & security measures. Learn more here: https://www.privacyguides.org/en/desktop-browsers/

Phone

It's extremely simple and totally didn't take me about a week!

@lovmoon3k
lovmoon3k / background.js
Created April 26, 2023 13:15 — forked from tqk2811/background.js
ProxyExt
var config = {
mode: "fixed_servers",
rules: {
singleProxy: {
scheme: "http",
host: "{host}",
port: "{port}"
},
bypassList: ["localhost"]
}
@lovmoon3k
lovmoon3k / Extensions.cs
Created April 26, 2023 13:15 — forked from tqk2811/Extensions.cs
LiveStream loop video
using System;
using System.Runtime.InteropServices;
using FFmpeg.AutoGen;
namespace StreamVideo.Ffmpeg
{
internal static class Extensions
{
static unsafe string av_strerror(int error)
{
CancellationTokenSource source = null;
void Run()
{
if(source?.IsCancellationRequested != false)//true hoặc source null
{
source?.Dispose();
source = new CancellationTokenSource();
}
Task.Run(() =>