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 set up an Ubuntu 22.04+ server | |
# (with minimum 16GB RAM, 8 threads CPU) for android platform, linux builds and more | |
# | |
# Sudo access is mandatory to run this script. | |
# Recommended to apply personal dotfiles afterwards. | |
# | |
# Usage: | |
# ./ubuntu-setup.sh |
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 | |
# pip install cryptography | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.backends import default_backend |
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: |
NewerOlder