Skip to content

Instantly share code, notes, and snippets.

View searock's full-sized avatar
:octocat:

Searock Ruzario searock

:octocat:
  • Chile
View GitHub Profile
@searock
searock / download apk from device.txt
Created April 12, 2023 00:57
Downloading apk from device
Get a list of all the packages
adb shell pm list packages
Get the location for the app
adb shell pm path com.example.someapp
Download all the apks
adb pull /path/apk1 .
adb pull /path/apk2 .
@searock
searock / Modifing apk
Last active April 11, 2023 23:12
Modifing apk
# Modifing the APK
This instructions are for mac
Make sure you have java installed and you can access it from the terminal.
Head to apktool website and download the apktool jar and apktool.sh
https://ibotpeaches.github.io/Apktool/install/
Rename the jar to apktool.jar
@searock
searock / gist:ce7d221b00789ae6c8ee69b7f56ed90c
Created July 12, 2018 23:27
Querying origin and destination location in mongoDB
//class
var package = function (packageName, originLatitude, originLongitude,
destinationLatitude, destinationLongitude) {
return {
packageName : packageName,
origin : { type : "Point", coordinates: [originLatitude, originLongitude]},
destination : { type : "Point", coordinates: [destinationLatitude, destinationLongitude]}
};
};
@searock
searock / duplicate.sql
Last active July 11, 2018 19:39
Search for duplicate values in a table.
select column_name, count(column_name)
from table
group by column_name
having count (column_name) > 1;
@searock
searock / pagination.sql
Created December 9, 2015 19:38
Oracle pagination query
SELECT *
FROM (SELECT R.*, ROWNUM RNUM, COUNT(*) OVER () RESULT_COUNT
FROM (SELECT i.ITEM_CODE, i.ITEM_NAME
FROM TBL_ITEMS i) R)
WHERE RNUM between 0 and 9 ;