Skip to content

Instantly share code, notes, and snippets.

I/use-Rlog/RLOG-RILC( 327): qmi_ril(0/327): [cmd-22(144)] qcril_qmi_nas_util_convert_nas_srv_status_to_ril_reg_status: ... is voice supported on lte dyn 1, setting 0
I/use-Rlog/RLOG-RILC( 327): qmi_ril(0/327): [cmd-22(144)] qcril_qmi_nas_is_in_service_of_technology: .. param 1
I/use-Rlog/RLOG-RILC( 327): qmi_ril(0/327): [cmd-22(144)] qcril_qmi_nas_is_in_service_of_technology: .. cache valid 0
I/use-Rlog/RLOG-RILC( 327): qmi_ril(0/327): [cmd-22(144)] qcril_qmi_nas_util_convert_nas_srv_status_to_ril_reg_status: ... is voice supported on lte dyn 1, setting 0
D/use-Rlog/RLOG-RIL-QMI( 375): qmuxd: RX 47 bytes on fd=23 from qmux_client_id=b
E/use-Rlog/RLOG-RIL-RAWDATA( 375): service_ID = 3, message_ID = 4d
E/use-Rlog/RLOG-RIL-RAWDATA( 375): 01 0C 00 00 03 01 00 2A 00 4D 00 ..
E/use-Rlog/RLOG-RIL-QMI( 375): [SMDPORT] >> BEFORE, Write SMD Port [fd = 10] [msg_len = 13]
E/use-Rlog/RLOG-RIL-QMI( 375): [SMDPORT] << AFTER, Write SMD Port [rc = 0]
D/RILJ ( 1094): [3795]> DATA_REGISTRATION_STATE
@ibrahima
ibrahima / rotationcrash
Created November 8, 2013 09:03
Rotation crash
E/Sensors (11896): poll() failed (Interrupted system call)
E/Sensors (11896): poll() failed (Interrupted system call)
W/Watchdog(11896): *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.wm.WindowManagerService on foreground thread (android.fg), Blocked in handler on ui thread (android.ui), Blocked in handler on WindowManager thread (WindowManager)
W/Watchdog(11896): foreground thread stack trace:
W/Watchdog(11896): at com.android.server.wm.WindowManagerService.monitor(WindowManagerService.java:10704)
W/Watchdog(11896): at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:147)
W/Watchdog(11896): at android.os.Handler.handleCallback(Handler.java:733)
W/Watchdog(11896): at android.os.Handler.dispatchMessage(Handler.java:95)
W/Watchdog(11896): at android.os.Looper.loop(Looper.java:137)
W/Watchdog(11896): at android.os.HandlerThread.run(HandlerThread.java:61)
@ibrahima
ibrahima / rostopicmon.bash
Created January 30, 2013 10:20
Simple script to log all current ROS topics
#!/usr/bin/env bash
# Logs all current ROS topics to files
declare -a pids
declare -a topics
CYAN="\033[0;36m"
RED="\033[0;31m"
NO_COLOR="\033[0m"
@ibrahima
ibrahima / Link.html
Created November 29, 2012 09:02
Bookmarklet for embedding diff views into Github commit log pages.
@ibrahima
ibrahima / gitdiff.sh
Created November 28, 2012 06:04
slightly simplified git diff
#!/usr/bin/env sh
git diff --cached --word-diff=porcelain -b --no-prefix | grep "^[\+\-][^\+\-]"
@ibrahima
ibrahima / noisy-make.bash
Created October 29, 2012 23:36
A function that lets you call make and have it play a sound on successful or unsuccessful completion.
function make(){
/usr/bin/make "$@"
EXITCODE=$?
QUIET=false
OPTIND=1
while getopts ":q" opt; do
case $opt in
q)
QUIET=true
;;
@ibrahima
ibrahima / logcat.txt
Created August 28, 2012 18:25
Galaxy Note 10.1 Boot Errors
This file has been truncated, but you can view the full file.
--------- beginning of /dev/log/main
V/AudioPolicyManagerBase( 4753): getDeviceForStrategy() strategy 2, device 2
V/AudioPolicyManagerBase( 4753): getDeviceForStrategy() strategy 0, device 2
V/AudioPolicyManagerBase( 4753): getDeviceForStrategy() strategy 3, device 2
V/AudioPolicyManagerBase( 4753): getDeviceForStrategy() strategy 4, device 2
@ibrahima
ibrahima / dmesg
Created August 28, 2012 07:57
S-Pen error logs
170.365193] c0 [E-PEN] wacom_i2c_coord failed to read i2c.L521
<7>[ 170.386588] c3 [E-PEN] pdct 0(0)
<7>[ 170.386613] c3 [E-PEN] forced_hover
<6>[ 170.575035] c0 pet_watchdog_timer_fn kicking...c033
<6>[ 170.770177] c0 [E-PEN]: wacom_i2c_query: 0th ret of wacom query=-6
<6>[ 170.770265] c0 [E-PEN]: wacom_i2c_query: 1th ret of wacom query=-6
<6>[ 170.770350] c0 [E-PEN]: wacom_i2c_query: 2th ret of wacom query=-6
<6>[ 170.770430] c0 [E-PEN]: wacom_i2c_query: 3th ret of wacom query=-6
<6>[ 170.770513] c0 [E-PEN]: wacom_i2c_query: 4th ret of wacom query=-6
<6>[ 170.770597] c0 [E-PEN]: wacom_i2c_query: 5th ret of wacom query=-6
@ibrahima
ibrahima / request_queue.py
Created July 20, 2012 22:21
A silly class that lets you use Grequests in a somewhat similar manner as the ruby gem Typhoeus
import grequests
from collections import deque
class RequestQueue(object):
"""
This is a lame imitation of a Typhoeus Hydra using GRequests.
The main thing this allows is building up a queue of requests and then
executing them, and potentially adding requests to the queue in a callback
so that you can build requests that depend on other requests more naturally.
@ibrahima
ibrahima / .bashrc
Created June 14, 2012 00:58
My .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace