Skip to content

Instantly share code, notes, and snippets.

View DerGoogler's full-sized avatar
🍃
Busy.

Der_Googler DerGoogler

🍃
Busy.
View GitHub Profile
@DerGoogler
DerGoogler / README.md
Last active September 3, 2024 20:33
ModConf prototype for the livebootmagisk module

fallbackwidth and fallbackheight are empty when you run the config in the browser

Note

The current version is messy.

image

import React from "react";
import { Page, Toolbar, BottomToolbar, Ansi } from "@mmrl/ui";
import { ConfigProvider } from "@mmrl/providers";
import {
useConfig,
useActivity,
useNativeStorage,
useTheme
} from "@mmrl/hooks";
import { Add, Remove, Save } from "@mui/icons-material";
var useExt = false
const [line, addLine]
const processCommand = (rawCommand) => {
var arg;
var command;
const i = rawCommand.indexOf(' ');
if (i != -1 && rawCommand.length() != i + 1) {
arg = rawCommand.substring(i + 1).trim();
import React from "react";
import { Page, Toolbar } from "@mmrl/ui";
import { useActivity } from "@mmrl/hooks";
import { BugReport } from "@mui/icons-material";
import { ListItem, ListItemIcon } from "@mui/material";
const y = YAML.parse(`bind-addr: 127.0.0.1:8080
auth: password
password: SuperStrongPassword
cert: false`)
@DerGoogler
DerGoogler / getisk.md
Created January 14, 2023 14:42
Magisk Module CLI Installer.

Getisk CLI

An cli to install module directly from the Magisk-Modules-Alt-Repo

Usage

Usage: getisk install mkshrc:master

        install          the module to be installed
 help prints this help message
@DerGoogler
DerGoogler / Multi-User.README.md
Created November 13, 2022 20:53
Manage User via CLI in Android

Multi-User Manager

Manage User via CLI in Android

Running

curl -s https://gist.githubusercontent.com/DerGoogler/cd126c2b5e1f2527b205d4a8e34c829e/raw/188bb04be876a01181740ad72f0be47f4a3d0e42/multi-user.sh | /data/adb/magisk/busybox ash
@DerGoogler
DerGoogler / tellonym-api-fetch.md
Last active October 27, 2022 20:29
Simple script to fetch tells from an Tellonym user

Tellonym API Fetch

Simple script to fetch the tells from an Tellonym user

main.mjs

import fetch from 'node-fetch'

let settings = { method: "Get" };
@DerGoogler
DerGoogler / TSON.ts
Created October 9, 2022 13:32
An JSON prototype parser.
import Mustache from "mustache";
namespace TSON {
export type Vars<T> = {
vars: T;
};
export type Data<T = any, V = any> = Vars<V> & {
[o: string | number | symbol]: T;
};
export type OmitterKeys<T> = keyof T | (keyof T)[];
@DerGoogler
DerGoogler / charger.sh
Created March 21, 2022 16:35
Fake Shell Android Charger. Battery state will automatically reseted after successfully execution.
################################
# 2022 (c) Der_Googler #
# Fake Shell Android Charger #
################################
i=1
while [ $i -le 100 ]
do
# Change the battery steps every by one
cmd battery set level $i
@DerGoogler
DerGoogler / dom.js
Created February 26, 2022 16:01
Translation with HTML
// <dg-lang de="" en=""></dg-lang>
class TTSLANG extends HTMLElement {
connectedCallback() {
if (getUrlParam("lang") == "en") {
this.innerHTML = this.getAttribute('en');
} else if (getUrlParam("lang") == "de") {
this.innerHTML = this.getAttribute('de');
}
}
}