Skip to content

Instantly share code, notes, and snippets.

@AggamR
AggamR / getMsFontsIso.sh
Created July 15, 2021 15:38
get ms fonts from a windows 10 iso
#!/bin/bash
echo -e "Hello! this is a shell script to help you get microsoft fonts straight from a Windows 10 ISO. \nThis can be used for any language."
[ "$EUID" -ne 0 ] && echo "Please run this script as root."
[ ! -x "$(command -v 7z)" ] && echo "You need 7z installed in order for the scipt to run"
echo enter iso file path:
read ISOPATH
@SebaUbuntu
SebaUbuntu / README.md
Last active June 27, 2024 08:09
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@mvaisakh
mvaisakh / Bringup.md
Last active July 9, 2024 08:03
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@skazemi
skazemi / install-realvnc-server-linux-arm64.sh
Created June 1, 2021 15:18
Install RealVNC server on arm64 linux (Ubuntu on RasPi)
mkdir realvncserversetup && cd realvncserversetup
echo Add armhf arch
sudo dpkg --add-architecture armhf && sudo apt update
echo Download and install RealVNC server
wget -nv https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.7.4-Linux-ARM.deb && sudo apt install ./VNC-Server-6.7.4-Linux-ARM.deb
echo Download and install dependencies
files=( libbcm_host.so libvcos.so libmmal.so libmmal_core.so libmmal_components.so \
libmmal_util.so libmmal_vc_client.so libvchiq_arm.so libvcsm.so libcontainers.so )
@mezorian
mezorian / PushBigGitCommitByCommit.sh
Last active May 26, 2024 17:26
Push big git repository commit by commit to not run into timeouts
#!/bin/bash.sh
#
# push a big git repository commit by commit to not run into timeouts
# this is for example needed if you have some bigger binary files inside the repository and
# run into timeouts while pushing the repo into a new remote url.
#
# to run this script please ensure that:
# 1. you are able to push to your remote url via ssh (without password authentication)
# 2. you put this file into the directory above your git repo and open a bash inside your repo's directory
# 3. this file is executable, if you are unsure about this run:
@ThEMarD
ThEMarD / Kang blobs from a section of your proprietary-files on LineageOS 17.1.txt
Last active November 1, 2023 16:54
Kang blobs from a section of your proprietary-files on LineageOS 17.1
Make sure the device's and/or commonized device proprietary-files are updated with the same blobs that you want in your proprietary vendor repo.
Next, to use the kang and section mode we need the switches "-k -s". -k tells extract-files to only kang/pull updated blobs without deleting any blobs. -s tells it to only update ones from a commented section of your proprietary-files.
for example, if i have this in my proprietary-files
# ADSP - from oneplus3t - OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/1911042108 - OOS 9.0.6
vendor/lib/libadsp_hvx_callback_skel.so
vendor/lib/libadsp_hvx_stub.so
@frankIT
frankIT / android_stock_debloat.sh
Last active July 31, 2021 09:34
Uninstall vendor system packages through adb shell
#!/bin/bash
# Uninstall vendor system packages through adb shell.
# Stock ROM Samsung Galaxy J3 - J330F
apps=(
'com.samsung.android.calendar'
'com.google.android.music'
'com.google.android.videos'
'com.microsoft.office.excel'
@lbrame
lbrame / archtweaks.md
Last active June 19, 2024 13:03
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@archie9211
archie9211 / colab-ssh-jupyter.sh
Last active August 27, 2021 13:26
Google colab ssh and jupyter lab script
# create an account on ngrok is not already and copy the authtoken and
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip ngrok-stable-linux-amd64.zip
read -p 'Enter the authtoken from ngrok :' authtoken
./ngrok authtoken $authtoken #for example ZT64bWYnXTAsJej4FNFTdsjhsuAQqKqZHn2Sh4g2sfAD
./ngrok tcp 22 &
apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen > /dev/null
mkdir -p /var/run/sshd
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
echo "LD_LIBRARY_PATH=/usr/lib64-nvidia" >> /root/.bashrc && echo "export LD_LIBRARY_PATH" >> /root/.bashrc
@mika76
mika76 / stars.ps1
Last active January 28, 2024 15:08 — forked from sebble/stars.sh
List all starred repositories of a GitHub user.
[CmdletBinding()]
param (
[Parameter()]
[string]
$user = "mika76"
)
$URL = "https://api.github.com/users/$user/starred"
$PAGE = 0