Skip to content

Instantly share code, notes, and snippets.

View neilchetty's full-sized avatar

Neil Chetty neilchetty

View GitHub Profile
@neilchetty
neilchetty / Solution_CP.java
Created February 3, 2024 10:44
Solution Template
import java.util.*;
import java.io.*;
import java.math.*;
public class Solution {
public static void main(String[] args) {
// WRITE CODE HERE
int a = in.nextInt(), b = in.nextInt();
out.println(power(a,b));
@neilchetty
neilchetty / SonicFireWall_Login_Public.py
Last active October 15, 2023 02:28
SonicFireWall Login
# Latest python version is needed
# Latest firefox version is needed
# Selenium package is needed please install by running:
# pip install selenium
# If driver cannot be located please refer this:
# https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
@neilchetty
neilchetty / kernel-build.sh
Last active November 27, 2023 06:49
Kernel Build Script For Realme X7 Max
#!/bin/bash
function setup() {
ccache -M 50G
source ~/.bashrc && source ~/.profile
export Image=out/arch/arm64/boot/Image.gz-dtb
export DEFCONFIG=k6893v1_64_k419_defconfig
export LC_ALL=C && export USE_CCACHE=1
export KBUILD_BUILD_HOST=kernel-build && export KBUILD_BUILD_USER=neil
export RANDOM=$(date +%s) && export FILENAME=OSS-KERNEL-CUPIDA-$RANDOM.zip
@neilchetty
neilchetty / Sign-Android-Build.md
Last active November 27, 2023 06:46
Guide To Sign Android Build Update With Private Release Keys

Index

  1. Generating signing keys (Part 1)
  2. Generating signing keys (Part 2)
  3. Making signed build (recovery)
  4. Making signed build (fastboot)
  5. Making incremental update

Requirements

All you need is an android buildsystem (I would recommend you to use lineageos)