Skip to content

Instantly share code, notes, and snippets.

View cHAuHaNz's full-sized avatar

Amandeep Chauhan cHAuHaNz

  • 15:58 (UTC +05:30)
View GitHub Profile
@cHAuHaNz
cHAuHaNz / XiaomiUtilities.java
Created April 19, 2024 12:34
A utility class in Java for Mi/Redmi/Xiaomi devices permission handling
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import java.lang.reflect.Method;
// MIUI. Redefining Android.
@cHAuHaNz
cHAuHaNz / AppiumWithPython.md
Created March 14, 2024 07:22
Setting up Appium POM with Python

Appium (with Python)

1. Setup Project

Install IDE (PyCharm or Idea)

Create a New Project

  • Click on New Project
@cHAuHaNz
cHAuHaNz / SeleniumWithPython.md
Created January 26, 2024 20:30
Setting up Selenium POM with Python

Selenium (with Python)

1. Setup Project

Install IDE (PyCharm or Idea)

Create a New Project

  • Click on New Project
@cHAuHaNz
cHAuHaNz / proguard-rules.pro
Created March 16, 2023 17:13
Proguard rules file
##---------------Begin: proguard configuration common for all Android apps ----------
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
@cHAuHaNz
cHAuHaNz / Room DB.md
Created August 5, 2022 11:30
Just a basic explanation of Room DB and its components in Android

What is Room ?

The Room persistence library provides an abstraction layer over SQLite. library takes care most of complicated stuff that we previously had to do ourselves, we will write much less boilerplate code to create tables and make database operations.

Sqlite in android is not that cool

  • You need to write out a boilerplate code to convert between your java object and your sqlite object.
  • It doesn't have compile time safety, if you building sqlite query and if you forgot to add comma, you going to get run time crash, that makes you very hard to test all those cases you put.
  • When you are writing reactive application and you want to observe the databases changes to UI , sqlite doesn't facilitate to do that but Room is built to work with LiveData and RxJava for data observation.

N|Solid

What is Fugu?

An open-source business chat software that empowers real-time communication

How to Use?

We have all guides ready for you right here

Fugu is an open source, private cloud, Slack-alternative from https://jungleworks.com/fugu/


Steps to deploy FuguChat on your own server

Requirements

Plugin Min Version
AWS S3 Bucket N/A
AWS Rekognition N/A
Redis v3.2.8
@cHAuHaNz
cHAuHaNz / TempMailboxDomains.txt
Created January 25, 2021 10:56
A list of 33,000+ temporary/throwable email domains.
0-00.usa.cc
0-attorney.com
0-mail.com
00.msk.ru
000777.info
001.igg.biz
0033.pl
0039.cf
0039.ga
0039.gq