Skip to content

Instantly share code, notes, and snippets.

View oddlyspaced's full-sized avatar

Hardik Srivastava oddlyspaced

View GitHub Profile
yay -S python-conda python-boltons python-tqdm
conda init
...
{
"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
{
"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
}
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
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
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
@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
@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 / 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
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.