Skip to content

Instantly share code, notes, and snippets.

HunterMeyer /
Last active Jan 12, 2021
Delete Android Apps with ADB without Root or Android Studio

Delete Android Apps using ADB

You don't need to root your phone or install Android Studio.

Step 1: Download platform-tools

Download platform-tools for your platform (Mac, Windows, Linux).

Step 2: Uninstall Apps (using Mac)

Enable "USB Debugging" on your phone then connect it via USB to your computer.

Then run the following:

HunterMeyer / clear_failed_jobs.rb
Created Feb 6, 2019
Clear Failed Resque Jobs
View clear_failed_jobs.rb
class ClearFailedJobs
# Clear all the failed resque jobs for a specific class
# ==== Attributes
# * +klasses+ - The Ruby classes to clear as a String or Array of Strings
# ==== Examples
# ClearFailedJobs.by_class('Exports::ReportCSV')
# ClearFailedJobs.by_class(['Exports::ReportCSV', 'Exports::ReportPDF'])
def self.by_class(klasses, queue = 'failed')