This file contains 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
#!/usr/bin/bash | |
# prints in CSV format for import into visualization tools | |
hextodec () | |
{ | |
hci_test_device_batterylevel=$((16#$1)) | |
} | |
if [ -z "$1" ] |
This file contains 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
curl 'http://192.168.0.110/eng/admin/adv_record.cgi' -H 'Cookie: usePath=null' -H 'Origin: http://192.168.0.110' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: nb-NO,en-US;q=0.8,sv-SE;q=0.6,sv;q=0.4,da-DK;q=0.2,da;q=0.2,nb;q=0.2,no;q=0.2,nn;q=0.2,en;q=0.2' -H 'Upgrade-Insecure-Requests: 1' -H 'Authorization: Basic YWRtaW46' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61 Safari/537.36' -H 'Cache-Control: max-age=0' -H 'Referer: http://192.168.0.110/eng/admin/adv_record.cgi' -H 'Connection: keep-alive' -H 'DNT: 1' --data 'enable=0' --compressed -s -w "%{http_code}\n" -o /dev/null |
This file contains 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
#!/bin/bash | |
sdlog | grep -E 'Motion' | tail -n 150 | tac | nl |
This file contains 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
cat ~/Nedlastinger/ipcamping.log | tail -n 9600 | cut -d' ' -f 3,10 | cut -b 2-11,25- | tr = , | (IFS=","; while read time ms ; do time=$(( $time * 1000 + 3600000)); echo "$time,$ms"; done) | tee ~/Nedlastinger/filtered.log |
This file contains 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
ping -i 5 -D 192.168.0.110 | while read pong; do if [[ $pong != *"PING"* ]]; then echo "$(date +'%F %T'): $pong" | tee -a ~/Nedlastinger/ipcamping.log ; fi; done |
This file contains 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
curl --anyauth -v 'http://192.168.0.110/eng/admin/reboot.cgi' -H 'Referer: http://192.168.0.110/eng/admin/tools_default.cgi' --data 'reboot=true' --compressed |
This file contains 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
curl --anyauth -u admin: 'http://192.168.0.110/eng/admin/adv_sdcard.cgi?folderpath=&command=video' -s -e 'http://192.168.0.110/eng/admin/adv_sdcard.cgi?folderpath=20171220&command=video&filesperpage=100' | grep folderstring | cut -d ">" -f 2 | cut -d "<" -f 1 |
This file contains 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
while sleep 1; do adb shell ps -p $(adb shell pgrep dji | head -n 1) -T; done | |
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD | |
u0_a200 27682 27682 763 2506844 730904 0 0 S dji.go.v4 | |
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD | |
u0_a200 27682 27682 763 2506844 730908 0 0 S dji.go.v4 | |
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD | |
u0_a200 27682 27682 763 2506844 731176 0 0 S dji.go.v4 | |
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD | |
u0_a200 27682 27682 763 2506844 731692 0 0 S dji.go.v4 |
This file contains 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
I signed out of the app to see the resource utilization. | |
Why is SwUdpService and timer-0..4 + amapLocCoreThre running when signed out of app? | |
Why is two location listeners active (1m and 900ms) ? | |
Every 5,0s: adb shell dumpsys cpuinfo | grep -A20 dji.go satellite: Sun Sep 23 08:38:33 2018 | |
3.9% 31624/dji.go.v4: 2.4% user + 1.4% kernel / faults: 4838 minor |
This file contains 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
09-24 09:39:59.085 11279 11279 I DJILocationManager: Attempting to get last known location from default providers... | |
09-24 09:39:59.980 11279 11422 I zygote : Explicit concurrent copying GC freed 4979(320KB) AllocSpace objects, 1(20KB) LOS objects, 50% free, 17MB/35MB, paused 1.854ms total 277.349ms | |
09-24 09:40:00.847 11279 11348 E getNetworkObject: network type:1 | |
09-24 09:40:00.853 11279 11348 E SwUdpService: SwUdpConnect ...result=1 | |
09-24 09:40:01.196 11279 11279 I DJILocationManager: Attempting to get last known location from default providers... | |
09-24 09:40:02.706 11279 11422 I zygote : Explicit concurrent copying GC freed 6591(655KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 17MB/35MB, paused 2.517ms total 276.893ms | |
09-24 09:40:02.932 11279 11348 E getNetworkObject: network type:1 | |
09-24 09:40:02.934 11279 11348 E SwUdpService: SwUdpConnect ...result=1 | |
09-24 09:40:03.198 11279 11279 I DJILocationManager: Attempting to get last known location from default providers... | |
09-24 09:40:04.945 11279 11 |
OlderNewer