Skip to content

Instantly share code, notes, and snippets.

@dmi3coder
dmi3coder / gist:8c6686ad686e4660e1cdc024d5bc4376
Created December 9, 2017 10:40 — forked from liudong/gist:3993726
Java: Generate Public/Private Keys
import java.security.KeyPairGenerator;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.KeyFactory;
import java.security.spec.EncodedKeySpec;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.security.spec.InvalidKeySpecException;
import java.security.NoSuchAlgorithmException;
@Pulimet
Pulimet / AdbCommands
Last active October 22, 2025 08:20
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.
@theonewolf
theonewolf / make_ext4_example_android_fs.sh
Last active May 27, 2023 07:42
Make Android-like ext4 File System for gammaray testing
#!/usr/bin/bash
truncate -s 0 ext4-match-android.raw
truncate -s 14540582912 ext4-match-android.raw
echo ''
echo 'Create a Single Primary Partition w/ Defaults'
read
sfdisk ext4-match-android.raw << EOF