Skip to content

Instantly share code, notes, and snippets.

View PowerX-NOT's full-sized avatar
🎯
Focusing

NOT_SURE PowerX-NOT

🎯
Focusing
  • Bangalore, India
  • 09:13 (UTC -12:00)
View GitHub Profile
/*************************************************************************
PROJECT NAME: Bharat Pi NavIC Shield test firmware
AUTHOR: Bharat Pi
CREATED DATE: 26/03/2024
COPYRIGHT: BharatPi @MIT license for usage on Bharat Pi boards
VERSION: 2.0
DESCRIPTION: NavIC get latlong and other navigation parameters using Bharat Pi NavIC tracker shield.
REVISION HISTORY TABLE:
#!/data/data/com.termux/files/usr/bin/bash
set -e # Stop if any command fails
# Create a temporary folder
mkdir -p ~/revanced_apks
cd ~/revanced_apks
# Download APKs
curl -L -o googlephotos-revanced.apk "https://github.com/Unofficial-Life/revanced-gphotos-build/releases/download/9/googlephotos-revanced-v7.4.0.687342855-arm64-v8a.apk"
@PowerX-NOT
PowerX-NOT / whatsapp-spam.py
Created May 21, 2024 15:28
spam your friends :)
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchElementException
# Initialize the WebDriver
driver = webdriver.Firefox()
@PowerX-NOT
PowerX-NOT / sort.py
Created March 24, 2024 05:02
Sort proprietary-files.txt
# Get the file path from the user
file_path = input("Enter the path to the file: ")
# Read the file and store the lines in a list
with open(file_path, 'r') as file:
lines = file.readlines()
# Initialize a dictionary to store libraries under each heading
libs_by_heading = {}
current_heading = None
@PowerX-NOT
PowerX-NOT / remove_duplicates.py
Created March 21, 2024 20:39
FIX duplicates in proprietarys
def remove_duplicates():
file_paths = input("Enter file paths separated by spaces: ").split()
for file_path in file_paths:
try:
with open(file_path, 'r') as file:
lines = file.readlines()
except FileNotFoundError:
print(f"File {file_path} not found. Skipping...")
continue
import subprocess
import sys
import math
# Function to install colorama if not present
def install_colorama():
try:
import colorama
except ImportError:
print("colorama is not installed. Installing now...")
import re
def convert_to_xml(input_string):
match = re.match(r'^(.+)@(.+)::(.+?)(?:/([^@]+))?$', input_string)
if match:
package, version, interface, instance = match.groups()
xml_string = f'''
<hal format="hidl">
<name>{package}</name>
<version>{version}</version>
@PowerX-NOT
PowerX-NOT / DC_dim_lut_calibration.py
Last active July 18, 2023 20:00 — forked from pwnrazr/DC_dim_lut_calibration.py
Modded from Cosmin's fod-dim-lut script
#!/usr/bin/env python3
import bisect
import subprocess
import sys
import time
from threading import Thread
def run_shell_cmd(*args):