This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cclip { | |
for file in "$@"; do | |
echo "=== $file ===" | |
cat "$file" | |
echo | |
done | xclip -selection clipboard | |
} | |
function dclip { | |
find "$(pwd)" -type f -not -path '*/\.*' -print0 | xargs -0 -I {} bash -c ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nconn() { | |
local ADB_LAST_IP_FILE="$HOME/.adb_last_known_ip" | |
if adb devices | grep -q ":5555\s*offline"; then | |
echo "Device offline. Attempting to reconnect..." | |
adb tcpip 5555 && sleep 1 && adb connect "$(cat "$ADB_LAST_IP_FILE"):5555" | |
echo "Reconnection failed. Ensure the device is on the same network." | |
return | |
elif adb devices | grep -q ":5555\s*device"; then | |
echo "Device already connected over Wi-Fi." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Made by Jyotiraditya Panda | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
$driverPath = "C:\usb-drivers" | |
Write-Host "Creating directory: $driverPath" -ForegroundColor Green | |
if (!(Test-Path $driverPath)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ADB and Fastboot Setup Script for Windows | |
# Run this script in PowerShell as Administrator | |
# Set execution policy to allow script execution | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
# Create directory for platform tools | |
$platformToolsPath = "C:\platform-tools" | |
Write-Host "Creating directory: $platformToolsPath" -ForegroundColor Green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# SPDX-FileCopyrightText: Jyotiraditya Panda <[email protected]> | |
# SPDX-License-Identifier: MIT | |
import argparse | |
import sys | |
import requests | |
BASE_URL = "https://zvuk.com" | |
API_ENDPOINTS = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
import sys | |
import xml.etree.ElementTree as ET | |
from typing import Dict, List, Union | |
def clean_key(key_text: str) -> str: | |
key_text = re.sub(r"-+BEGIN.*?-+|-+END.*?-+", "", key_text, flags=re.DOTALL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 89% 97/108] //frameworks/base/packages/SystemUI:SystemUIRobo-stub turbine apt [common] | |
FAILED: out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/kapt-sources.jar out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/kapt-res.jar | |
prebuilts/jdk/jdk17/linux-x86/bin/java -XX:OnError="cat hs_err_pid%p.log" -XX:CICompilerCount=6 -XX:+UseDynamicNumberOfGCThreads -jar out/host/linux-x86/framework/turbine.jar --gensrc_output out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/kapt-sources.jar.tmp --resource_output out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/kapt-res.jar.tmp --sources @out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/kapt-sources.jar.rsp --source_jars out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUIRobo-stub/android_common/kapt/stubs.jar out/soong/. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/input/input.h> | |
#include "kona-pmic-overlay.dtsi" | |
#include "kona-sde-display.dtsi" | |
#include "camera/kona-camera-sensor-rb5.dtsi" | |
#include "kona-rb5-audio-overlay.dtsi" | |
#include "kona-thermal-overlay.dtsi" | |
&qupv3_se12_2uart { |