Skip to content

Instantly share code, notes, and snippets.

View DerGoogler's full-sized avatar
🍃
Busy.

Der_Googler DerGoogler

🍃
Busy.
View GitHub Profile
@veez21
veez21 / wpd
Last active May 10, 2025 04:10
View wifi passwords through Termux for Android Oreo+ (Root)
#!/system/bin/sh
[ "$(whoami)" != "root" ] && { echo "root required"; exit 1; }
configs=( /data/misc/wifi/WifiConfigStore.xml /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml )
for z in ${configs[@]}; do
if [ -f $z ]; then
config=$z
break
fi
done
@SaschaWillems
SaschaWillems / activity.java
Last active May 7, 2025 05:34
Displaying a native android alert dialog from C++ using JNI
package com.yourpackage.appname;
import java.util.concurrent.Semaphore;
public class MyActivity extends NativeActivity {
static {
// Load native library
System.loadLibrary("native-lib");
}
@vilkoz
vilkoz / setup_http_server_on_android_with_termux.md
Last active March 19, 2025 20:13
setup http server on android with termux

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@csarron
csarron / scrcpy_shortcut.md
Created April 20, 2018 02:08
Scrcpy Shortcuts

Scrcpy Shortcuts

Action Shortcut
switch fullscreen mode Ctrl+f
resize window to 1:1 (pixel-perfect) Ctrl+g
resize window to remove black borders Ctrl+x | Double-click¹
click on HOME Ctrl+h | Middle-click
click on BACK Ctrl+b | Right-click²
click on APP_SWITCH Ctrl+m
@kayqueteixeira
kayqueteixeira / android-sdk-ndk-installer.sh
Last active July 9, 2025 07:53
Android SDK and NDK installer for Linux.
#!/bin/bash
# Installing Android SDK
cd /opt
echo "Downloading Android SDK..."
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip sdk-tools-linux-3859397.zip -d android-sdk
rm sdk-tools-linux-3859397.zip
@mininmobile
mininmobile / example.plugin.js
Last active July 10, 2024 23:19
Example BetterDiscord Plugin
//META{"name":"Example"}*//
class Example {
// Constructor
constructor() {
this.initialized = false;
}
// Meta
getName() { return "Example"; }
function formatFileSize(bytes,decimalPoint) {
if(bytes == 0) return '0 Bytes';
var k = 1000,
dm = decimalPoint || 2,
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
}
//You only need to use the formatFileSize() function in JavaScript to convert file size units.
@Pulimet
Pulimet / AdbCommands
Last active August 10, 2025 08:35
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@rahogata
rahogata / propertyfileeditor.sh
Last active June 9, 2023 05:06
Shell script to edit properties file interactively, add, update, delete, listing properties supported.
#!/bin/sh
# Name: propertyeditor
# Desc: add,update,delete, list properties interactively
# Args: $1 -> property file to edit.
PATH=/bin:/usr/bin:/usr/local/bin
DEFAULTFILE="$HOME/rahogata.properties"
# ignore signals during file operations
@codediodeio
codediodeio / database.rules.json
Last active May 11, 2025 08:08
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}