Skip to content

Instantly share code, notes, and snippets.

View oddlyspaced's full-sized avatar

Hardik Srivastava oddlyspaced

View GitHub Profile
@oddlyspaced
oddlyspaced / evoxlaurelflashinstructions
Last active April 29, 2020 10:02
EvolutionX Flashing instructions - Mi A3
Recommended Recovery - SHRP
Required Vendor - Android 10 (Included)
Steps -
1. Boot to Recovery (Preferably Slot A)
2. Format Data - only if needed
3. Flash ROM
4. Flash SHRP / TWRP Installer
5. Set Slot to B
6. Reboot
@oddlyspaced
oddlyspaced / classifiedpermlistandroid.txt
Created May 27, 2020 23:10
Classfied List of Android Permissions into Respective Groups
List Created and Updated as of 28/05/2020
Tested and classified on a device Running Android 10
Other permissions listed in Android Docs are either granted automatically, without any user prompt, or denied completely
without having any option to allow them (apart from using super user)
* Body Sensor
<uses-permission android:name="android.permission.BODY_SENSORS" />
* Calendar
06-02 03:47:19.053 20202 20232 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
06-02 03:47:19.053 20202 20232 E AndroidRuntime: Process: com.android.systemui, PID: 20202
06-02 03:47:19.053 20202 20232 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at android.os.AsyncTask$4.done(AsyncTask.java:399)
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:271)
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
06-02 03:47:19.053 20202 20232 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
@oddlyspaced
oddlyspaced / arch-install-mysql-workbench
Created February 28, 2021 14:40
Step by step guide to properly install MySQL Server and MySQL-Workbench on Arch Linux and other based distributions like Manjaro etc.
# Part 0 - Updating system
sudo pacman -Syyu
# Part 1 - Installing software dependencies
sudo pacman -S git gnome-keyring
# Part 2 - Compile and Install MySQL Server
# (This might take like ~4 hours since it's compiling the source)
git clone https://aur.archlinux.org/mysql.git
cd mysql
@oddlyspaced
oddlyspaced / List2PagingSourceSample
Created July 11, 2021 06:48
Reference code for converting list to Paging source for Paging Adapters
viewModel.results.observe(viewLifecycleOwner, { posts ->
CoroutineScope(Dispatchers.Default).launch {
adapter.submitData(
Pager(PagingConfig(10)) {
object : PagingSource<Int, Post>() {
override fun getRefreshKey(state: PagingState<Int, Post>): Int? {
return null
}
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, Post> {
@oddlyspaced
oddlyspaced / keypress.c
Created July 21, 2021 19:05
Print keycode of Mouse and Keyboard presses
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
int main(int argsc, char *argv[]) {
// Display
Display *dpy;
// Screen Id
int screen;
// Window
Changelog:
Burner Bits : 2.5r1
For this release our team has remade the whole app from the ground up, in compliance with the latest Google Technologies, in order to ensure that app stays well and functional in the long run.
A detailed changelog can be found below :
- App no longer restarts on changing language
- App no longer restarts on changing theme
- App no longer restarts on changing reading mode
- Slightly improved User Interface
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash modem modem.img
fastboot flash recovery recovery.img
fastboot --disable-verity flash vbmeta vbmeta.img
fastboot --disable-verity flash vbmeta_system vbmeta_system.img
fastboot reboot fastboot
fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
1/25
Evolver: Rename FP pressed color default to Cyan
GamingMode: LockGestureTile: load state from preferences in init
GamingMode: remove overlay menu switch
Settings: complete the AvatarViewMixin implementation
overlay: core: Add chroma to light surface highlight color
1/24
Battery Styles: Set proper battery style on init
Fix incorrect SID matching for bio prompts
{
"status": "success",
"has_more": true,
"postback_params": "{\"last_created_timestamp\":{\"seconds\":1714292519},\"last_order_id\":5747518212}",
"results": [{
"layout_config": {
"snippet_type": "filter_info_card",
"layout_type": "carousel",
"section_count": 1
}