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
#!/bin/bash | |
# Script to convert MKV files with dolby vision video (any profile), dolby audio (AC3 or EAC3) | |
# and subtitles, to MP4 with dolby vision profile 5 and SRT file. | |
# Default settings | |
video_id=0 | |
audio_id=0 | |
subtitle_id=0 | |
skip_extraction=false | |
audio_codec="eac3" |
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: 2025 Adithya R | |
SPDX-License-Identifier: MIT | |
""" | |
import sys | |
import xml.etree.ElementTree as ET |
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
#!/bin/bash | |
ulimit -n $(ulimit -Hn) | |
push() { | |
BRANCH="vauxite" | |
repo="$1" | |
name=$(grep -m 1 "path=\"$repo\"" manifest/{aospa,system,vendor}.xml .repo/local_manifests/baristablend.xml | head -n 1 | sed -e 's/.*name="//' -e 's/".*//') | |
if [[ -z $name ]]; then | |
name=$(grep -m 1 "name=\"$repo\"" manifest/{aospa,system,vendor}.xml .repo/local_manifests/baristablend.xml | head -n 1 | sed -e 's/.*name="//' -e 's/".*//') |
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
#!/bin/bash | |
export BRANCH="vauxite" | |
ulimit -n $(ulimit -Hn) | |
list() { | |
if ! git -C $1 diff m/$BRANCH > /dev/null; then | |
echo -e "Error in $1\n" | |
echo $1 >> .failed_list |
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
[wsl2] | |
processors=8 | |
memory=6GB | |
swap=4GB | |
[experimental] | |
autoMemoryReclaim=dropcache | |
sparseVhd=true |
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 xml.etree.ElementTree as ET | |
import os | |
tree = ET.parse('.repo/local_manifests/roomservice.xml') | |
repos = [] | |
for child in tree.getroot(): | |
repos.append(child.attrib['path']) |
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/python3 | |
from github import Github # requires pip3 install pygithub | |
g = Github(input("Enter token: ")) | |
org = g.get_organization(input("Enter org name: ")) | |
branch = input("Enter branch: ") | |
for repo in org.get_repos(): | |
try: |
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 <stdio.h> | |
#define EXTRACT_MAJOR_TYPE 0x1FC00000 | |
#define EXTRACT_MINOR_TYPE 0x000FC000 | |
#define SHIFT_BIT_MAJOR_TYPE 22 | |
#define SHIFT_BIT_MINOR_TYPE 14 | |
int main() | |
{ | |
unsigned int opcode; |
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
[BAT_SOC] | |
algo_type simulated | |
path /sys/class/power_supply/battery/capacity | |
polling 10000 | |
[ABT-SENSOR] | |
algo_type ambient | |
sensors conn_therm cpu_therm power | |
coefficient_a 1125764 -504112009 -14091616 -70113 532538065 -4114823 2437207 -326148 -103617 -2700734 622580 2579143 4346965 -221765043 -24019755 446314 -3844149 -4032380 -4771762 10874 25664217 -26724 122112248 2668021 -20207 99535920 1120133 | |
compensation -15506921 |
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 python | |
# | |
# based on https://pastebin.com/raw/9w5TBnSv | |
# credits to original author HemanthJabalpuri @ XDA | |
# converted to python using chatgpt | |
import struct | |
import sys | |
def abort(msg): |
NewerOlder