Skip to content

Instantly share code, notes, and snippets.

View jacobabrahamb4's full-sized avatar

Jacob Abraham jacobabrahamb4

View GitHub Profile
@jacobabrahamb4
jacobabrahamb4 / push.sh
Last active March 8, 2024 17:25
push app to android device
#!/bin/sh
if [ $# -gt 0 ]; then
adb root
sleep 1
adb remount
sleep 1
for i in "$@"
do
adb shell sync
adb shell rm -rf /"$i"
@jacobabrahamb4
jacobabrahamb4 / flash.sh
Created March 9, 2024 07:39
Android AOSP flash.sh
#!/bin/bash
#sudo ./adb kill-server
#sleep 2
#sudo ./adb start-server
#sleep 3
#sudo ./adb root
#sudo ./adb remount
sudo adb devices
sudo adb reboot-bootloader
sleep 3
@jacobabrahamb4
jacobabrahamb4 / bdiff.py
Last active March 18, 2024 12:05
Display diff between two commits. Tested working on ubuntu and Windows. Install beyond compare or meld before use. Works well with small-medium projects.
#!/usr/bin/env python3
"""
How to use this script?
-----------------------
Prerequisites:
1. python3, git and Beyond Compare/meld should be installed.
LINUX:
1. Create a directory ~/bin in your home directory.