This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell | |
| su | |
| cp /data/data/app.package.name/databases/application.sqlite /sdcard/ | |
| exit | |
| exit | |
| adb pull /sdcard/application.sqlite ~/ | |
| OR | |
| adb shell su -c cat /data/data/app.package.name/databases/application.sqlite | sed 's/\r$//' > application.sqlite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| du -ch | grep total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT datname,procpid,current_query FROM pg_stat_activity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'objspace' | |
| dumps = [] | |
| ObjectSpace.each_object do |class_name| | |
| dumps << ObjectSpace.dump(class_name, output: :string) | |
| end | |
| p dumps.length | |
| p dumps[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'faraday' | |
| field_file_url = 'http://localhost/blah' | |
| file_to_upload = 'test.txt' | |
| connection = Faraday.new(field_file_url) do |builder| | |
| builder.request :multipart | |
| builder.request :url_encoded | |
| builder.adapter :net_http | |
| end |