Skip to content

Instantly share code, notes, and snippets.

@HunterMeyer
HunterMeyer / delete_android_apps.md
Last active January 20, 2022 19:55
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
HunterMeyer / clear_failed_jobs.rb
Created February 6, 2019 21:14
Clear Failed Resque Jobs
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')