Merge lp:~karni/telegram-app/telegram-app-scripts into lp:telegram-app/app-dev

Proposed by Michał Karnicki
Status: Merged
Merged at revision: 58
Proposed branch: lp:~karni/telegram-app/telegram-app-scripts
Merge into: lp:telegram-app/app-dev
Diff against target: 68 lines (+43/-0)
5 files modified
scripts/applog.sh (+17/-0)
scripts/delete-db.sh (+8/-0)
scripts/inspect-db.sh (+10/-0)
scripts/show-config.sh (+5/-0)
scripts/unity8log.sh (+3/-0)
To merge this branch: bzr merge lp:~karni/telegram-app/telegram-app-scripts
Reviewer Review Type Date Requested Status
Roberto Mier Escandon (community) Approve
Review via email: mp+234507@code.launchpad.net

Description of the change

Some useful scripts.

To post a comment you must log in.
57. By Michał Karnicki

No need to go back.

Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'scripts'
=== added file 'scripts/applog.sh'
--- scripts/applog.sh 1970-01-01 00:00:00 +0000
+++ scripts/applog.sh 2014-09-12 16:29:52 +0000
@@ -0,0 +1,17 @@
1#!/bin/bash
2
3if [ "$1" == "clean" ]; then
4 adb shell rm "/home/phablet/.cache/upstart/application-click-com.ubuntu.telegram*.log"
5 shift
6fi
7
8version="*"
9if [ "$#" -gt 0 ]; then
10 version=$1
11 shift
12fi
13
14log="/home/phablet/.cache/upstart/application-click-com.ubuntu.telegram_telegram_"$version".log"
15
16adb shell touch "$log"
17adb shell tail -f "$log"
018
=== added file 'scripts/delete-db.sh'
--- scripts/delete-db.sh 1970-01-01 00:00:00 +0000
+++ scripts/delete-db.sh 2014-09-12 16:29:52 +0000
@@ -0,0 +1,8 @@
1#!/bin/bash
2
3if [ "$#" -ne 1 ]; then
4 echo "Usage: $0 phone_number"
5 exit -1
6fi
7
8adb shell rm -f "/home/phablet/.config/com.ubuntu.telegram/$1/database/telegram.sqlite"
09
=== added file 'scripts/inspect-db.sh'
--- scripts/inspect-db.sh 1970-01-01 00:00:00 +0000
+++ scripts/inspect-db.sh 2014-09-12 16:29:52 +0000
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3if [ "$#" -ne 1 ]; then
4 echo "Usage: $0 phone_number"
5 exit -1
6fi
7
8cd /tmp
9adb pull "/home/phablet/.config/com.ubuntu.telegram/$1/database/telegram.sqlite"
10sqlite3 telegram.sqlite
011
=== added file 'scripts/show-config.sh'
--- scripts/show-config.sh 1970-01-01 00:00:00 +0000
+++ scripts/show-config.sh 2014-09-12 16:29:52 +0000
@@ -0,0 +1,5 @@
1#!/bin/bash
2
3cd /tmp
4adb pull "/home/phablet/.config/com.ubuntu.telegram/com.ubuntu.telegram.conf"
5cat "com.ubuntu.telegram.conf"
06
=== added file 'scripts/unity8log.sh'
--- scripts/unity8log.sh 1970-01-01 00:00:00 +0000
+++ scripts/unity8log.sh 2014-09-12 16:29:52 +0000
@@ -0,0 +1,3 @@
1#!/bin/bash
2
3adb shell tail -f "/home/phablet/.cache/upstart/unity8.log"

Subscribers

People subscribed via source and target branches