Skip to content

Instantly share code, notes, and snippets.

View steadfasterX's full-sized avatar
😆
stateless but steadfast

steadfasterX steadfasterX

😆
stateless but steadfast
View GitHub Profile
@steadfasterX
steadfasterX / Android.mk (fake target - mka getholydebugvars)
Last active May 7, 2019 11:34
mka getholydebugvars (print debug vars in a make env)
# crucial important for getholydebugvars: Indents!
# If you open this file within vi/vim and see the first line red marked your vimrc is wrongly setup.
# Ensure you have NOT set "expandtab" there and better enforce it by "noexpandtab" e.g. like that:
# set tabstop=8 softtabstop=0 noexpandtab shiftwidth=4 smarttab
# with the above conf it requires 2 tabs for every line to make it work
getholydebugvars:
$(hide) echo "TARGET_IS_64_BIT: $(TARGET_IS_64_BIT)"
$(hide) echo "TARGET_ARCH: $(TARGET_ARCH)"
$(hide) echo "TARGET_ARCH_VARIANT: $(TARGET_ARCH_VARIANT)"
on FWUL:
-----------------------------------------------
cd ~/programs/lglafng
git pull
git checkout develop
git pull
sudo python partitions.py --list --debug
sudo python partitions.py --list --batch --debug
@steadfasterX
steadfasterX / bt-audio-logcat
Last active May 9, 2018 19:26
BT audio issue
05-09 08:21:20.829 0 0 E [ 1274.011185 / 05-09 08:21:20.823][1] init: property_set("ro.boottime.audioserver", "1274003857117") failed: property already set
05-09 08:21:21.105 22907 22907 E APM::Serializer: deserialize: Could not parse /odm/etc/audio_policy_configuration.xml document.
05-09 08:21:21.105 22907 22907 E APM::Serializer: deserialize: Could not parse /vendor/etc/audio_policy_configuration.xml document.
05-09 08:21:21.146 22907 22907 W hardware_info: update_hardware_info_8994: sfX: Not an 8994 device
05-09 08:21:21.206 6855 8975 E AudioService: Audioserver started.
05-09 08:21:21.240 0 0 E : [ 1274.422784 / 05-09 08:21:21.235][4] msm_qti_pp_get_rms_value_control, back not active to query rms be_idx:3
05-09 08:21:21.240 0 0 E : [ 1274.426168 / 05-09 08:21:21.239][4] msm_pcm_volume_ctl_get substream runtime not found
05-09 08:21:21.240 0 0 E : [ 1274.426337 / 05-09 08:21:21.239][4] msm_pcm_volume_ctl_get substream runtime not found
05-09 08:21:
@steadfasterX
steadfasterX / beautiful-failure.py
Created June 29, 2017 11:05 — forked from MatthiasWinkelmann/beautiful-failure.py
An Ansible plugin to format console output
# Save as <folder with your playbook>/callback_plugins/<some name>.py
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import time
import json
import sys
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }"