Skip to content

Instantly share code, notes, and snippets.

View bhawesh2002's full-sized avatar
:atom:
Learning to code

Bhavesh Mankar bhawesh2002

:atom:
Learning to code
View GitHub Profile
@bhawesh2002
bhawesh2002 / OpenSourceBaas.md
Created July 28, 2023 17:01 — forked from PARC6502/OpenSourceBaas.md
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
import random
from mnemonic import Mnemonic
from bitcoinlib.keys import HDKey
import requests
import gc
import psutil
import time
# Assuming wordList is a list of 2048 strings
wordList = [
"abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse",
@bhawesh2002
bhawesh2002 / main.dart
Last active August 17, 2022 14:13
A Counter App made in FLutter
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@bhawesh2002
bhawesh2002 / sparse_convertor.sh
Created February 18, 2022 12:42
Script for comverting sparcechunk to super.img for moto g40 fusion
#!/bin/sh
#SparseChunks to image Convertor for motorola images by Erfan Abdi
#special thanks to superR for header removal script
#make sure you have only one image with sparse chunks (super or oem)
echo "Converting all SparseChunks to Raw Image"
./simg2img *chunk* super.img.raw
echo "Removing Moto Header"
offset=$(LANG=C grep -aobP -m1 '\x53\xEF' super.img.raw | head -1 | gawk '{print $1 - 1080}')
dd if=super.img.raw of=super_moto.img ibs=$offset skip=1 2>&1
22:31:52 ************************************************************
22:31:52 You are building on a machine with 15.5GB of RAM
22:31:52
22:31:52 The minimum required amount of free memory is around 16GB,
22:31:52 and even with that, some configurations may not work.
22:31:52
22:31:52 If you run into segfaults or other errors, try reducing your
22:31:52 -j value.
22:31:52 ************************************************************
============================================
Starting TWRP 3.6.0_11-0-d0b854b3 on Tue May 19 22:43:40 1970
(pid 513)
RECOVERY_SDCARD_ON_DATA := true
TW_NO_CPU_TEMP := true
I:Lun file '/config/usb_gadget/g1/functions/mass_storage.0/lun.0/file'
TW_HAS_EDL_MODE := true
PRODUCT_USE_DYNAMIC_PARTITIONS := true
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness
I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness'
--------- beginning of kernel
05-19 17:46:23.072 0 0 I android_work: did not send uevent (0 0 0000000000000000)
05-19 17:46:23.097 0 0 I : read descriptors
05-19 17:46:23.097 0 0 I : read strings
05-19 17:46:23.098 0 0 I init : processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/system/etc/init/hw/init.rc:199)
05-19 17:46:23.098 0 0 I scsi 1 : 0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6
05-19 17:46:23.098 0 0 I init : Command 'symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/system/etc/init/hw/init.rc:202) took 0ms and failed: symlink() failed: File exists
05-19 17:46:23.099 0 0 I android_work: did not send uevent (0 0 0000000000000000)
05-19 17:46:23.099 0 0 I init : processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1
@bhawesh2002
bhawesh2002 / dmesg.log
Created December 29, 2021 12:37
dmesg
This file has been truncated, but you can view the full file.
[ 147.661937] android_work: did not send uevent (0 0 0000000000000000)
[ 147.680448] read descriptors
[ 147.680522] read strings
[ 147.680968] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/system/etc/init/hw/init.rc:199)
[ 147.681824] init: Command 'symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/system/etc/init/hw/init.rc:202) took 0ms and failed: symlink() failed: File exists
[ 147.682203] android_work: did not send uevent (0 0 0000000000000000)
[ 147.683546] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/init.recovery.qcom.rc:55)
[ 147.684193] init: Command 'rm /config/usb_gadget/g1/configs/b.1/f2' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/init.recovery.qcom.rc:59) took 0ms and failed: unlink() failed: No such file or directory
[ 147.684233] init: Command 'rm