Skip to content

Instantly share code, notes, and snippets.

@heo001997
heo001997 / char-keyevents.json
Last active November 16, 2024 00:25
This map includes all the keys from the original key_events map for ADB, with character representations used where applicable (for letters, numbers, and common punctuation marks). For special keys and those without a direct character representation, the original key names have been retained. Remember that this map doesn't distinguish between upp…
{
"char_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",
"0": "adb shell input keyevent 7",
@heo001997
heo001997 / AdbCommands
Created October 3, 2024 12:44 — forked from Pulimet/AdbCommands
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.
@heo001997
heo001997 / AdbCommands
Created April 4, 2024 16:21 — forked from ernestkamara/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@heo001997
heo001997 / clear-sidekiq-jobs.sh
Created February 19, 2024 03:47 — forked from wbotelhos/clear-sidekiq-jobs.sh
Clear Sidekiq Jobs
require 'sidekiq/api'
# 1. Clear retry set
Sidekiq::RetrySet.new.clear
# 2. Clear scheduled jobs
Sidekiq::ScheduledSet.new.clear
@heo001997
heo001997 / revert_destroy_all.rb
Created September 23, 2021 16:24 — forked from 8parth/revert_destroy_all.rb
revert back accidently deleted Model.destroy_all in rails console
Model.destroy_all
# if you haven't performed any other action after accidently deleting all records from Model,
# then _ would grab last response generated by Model.destroy_all
destroyed_records = _
destroyed_records.each do |destroyed_record|
Model.create(destroyed_record.attributes)
end