Skip to content

Instantly share code, notes, and snippets.

View ghostrider-reborn's full-sized avatar
:shipit:
hac

Adithya ghostrider-reborn

:shipit:
hac
View GitHub Profile
/*
Copyright (c) 2014, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
@ghostrider-reborn
ghostrider-reborn / assessment-2-marking-scheme.txt
Created October 14, 2019 08:26
XII CS 2nd assessment marking pattern
CS 2nd assessment marking pattern
----------------------------------
16 marks - python revision
8 marks - complexity
- 5 marks for for calculating complexity + best & worst case
- 3 marks for complexity only
NOTE: step by step calculation needed for both
12 marks - matplotlob
- 2 marks - theory question
#
# Automatically generated file; DO NOT EDIT.
# LEDE Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
@ghostrider-reborn
ghostrider-reborn / android-10-checker-sync.sh
Created September 4, 2019 01:26
keep checking for android 10 manifest release every 5 mins and sync when its ready
URL1="https://android.googlesource.com/platform/manifest/+/refs/tags/android-10.0.0_r1"
URL2="https://android.googlesource.com/platform/manifest/+/refs/tags/android10-release"
start_sync () {
echo -e "\nYO BOIS! ANDROID 10 IS OUT! INITIATING SYNC NOW! \n"
repo init -u "https://android.googlesource.com/platform/manifest" -b $(basename "$1")
repofastsync
exit 0
}
@ghostrider-reborn
ghostrider-reborn / los_gerrit_push.txt
Created July 19, 2019 11:46
Push commit(s) in a repo to LOS Gerrit even if you're not in LOS env
# Push commits to LOS Gerrit
git push ssh://<gerrit-user-id>@review.lineageos.org:29418/LineageOS/<repo-name> HEAD:refs/for/<branch>
git push ssh://ghostrider-reborn@review.lineageos.org:29418/LineageOS/android_device_cyanogen_msm8916-common HEAD:refs/for/lineage-16.0
git push ssh://ghostrider-reborn@review.lineageos.org:29418/LineageOS/android_device_yu_lettuce HEAD:refs/for/lineage-16.0
# Install change-id hooks first:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 ghostrider-reborn@review.lineageos.org:hooks/commit-msg ${gitdir}/hooks/
@ghostrider-reborn
ghostrider-reborn / Jenkins setup in Ubuntu.txt
Last active June 13, 2019 15:06 — forked from SilverShades02/Jenkins setup in Ubuntu.txt
Jenkins setup in Ubuntu - GCE, DigitalOcean or AWS instance
What is Jenkins?
Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. (Wikipedia)
1. Install required packages
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install -y jenkins
@ghostrider-reborn
ghostrider-reborn / lettuce_partition_table.txt
Last active March 27, 2019 15:55
YU Yuphoria partition table
Number Start (sector) End (sector) Size Code Name
1 131072 262143 64.0 MiB 0700 modem
2 262144 262145 1024 bytes FFFF fsc
3 262146 262161 8.0 KiB FFFF ssd
4 262162 263185 512.0 KiB FFFF sbl1
5 263186 264209 512.0 KiB 0700 sbl1bak
6 264210 265233 512.0 KiB FFFF rpm
7 265234 266257 512.0 KiB 0700 rpmbak
8 266258 267281 512.0 KiB FFFF tz
9 267282 268305 512.0 KiB 0700 tzbak
@ghostrider-reborn
ghostrider-reborn / E1M_ims_props.txt
Last active November 7, 2018 03:35
System props found in Nokia 2 IMS blobs
$ find . -name '*so' | xargs strings | grep '^persist.'
persist.radio.ims.backcamera
persist.media.treble_omx
persist.ims.mm_maxqp
persist.vendor.qti.telephony.vt_cam_interface
persist.vendor.ims.use_modem_time
persist.vendor.ims.vt.enableadb
persist.vendor.ims.use_mdmtime
persist.vendor.ims.get_min_bitrate
persist.vendor.ims.enableltr
@ghostrider-reborn
ghostrider-reborn / A6020_props.txt
Created October 28, 2018 01:52
System props found in A6020 proprietary blobs
$ find . -name '*so' | xargs strings | grep '^persist\.'
persist.camera.pproc.debug.mask
persist.camera.dumpmetadata
persist.camera.pproc.debug.mask
persist.rmnet.data.enable
persist.data.netmgrd.qos.enable
persist.data.qmi.adb_logmask
persist.camera.imglib.dump
persist.camera.mobicat
persist.bluetooth.a4wp
@ghostrider-reborn
ghostrider-reborn / lettuce_props.txt
Last active November 8, 2019 17:56
system properties found in lettuce proprietary blobs
$ find . -name '*so' | xargs strings | grep 'persist.radio'
persist.radio.voice.modem.index
persist.radio.multisim.config
persist.radio.ignore_ims_wlan
persist.radio.sglte_csfb
persist.radio.multisim.config
persist.radio.rat_on
persist.radio.kddi_hold_answ_on
persist.radio.ims_retry_3gpp
persist.radio.ims_retry_3gpp2