Skip to content

Instantly share code, notes, and snippets.

View adithya2306's full-sized avatar
:shipit:
hac

Adithya R adithya2306

:shipit:
hac
View GitHub Profile
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active November 12, 2024 11:14 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: November 2024

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@Debdutta-Panda
Debdutta-Panda / MainActivity.kt
Created July 19, 2022 16:33
Jetpack Compose Vertical Slider
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
In this guide we will learn about writing overlayed dtsi.
It will involve changing OEM dtsi commit (https://github.com/stormbreaker-project/kernel_asus_X01AD/commit/d4fd8d9a664672056e4b68a31da298a4d4bc79ac)
to a fully overlayed dts (https://github.com/stormbreaker-project/kernel_asus_X01AD/commit/85b3cb884acf30831a4185327a19a2c4268e457a)
1.)
First check the initial dts import of your device .
For example my device initial dts imports ->
@adithya2306
adithya2306 / lettuce_props.txt
Last active November 8, 2019 17:56
system properties found in lettuce proprietary blobs
$ find . -name '*so' | xargs strings | grep 'persist.radio'
persist.radio.voice.modem.index
persist.radio.multisim.config
persist.radio.ignore_ims_wlan
persist.radio.sglte_csfb
persist.radio.multisim.config
persist.radio.rat_on
persist.radio.kddi_hold_answ_on
persist.radio.ims_retry_3gpp
persist.radio.ims_retry_3gpp2
@SilverShades02
SilverShades02 / Jenkins setup in Ubuntu.txt
Last active April 16, 2019 15:08
Jenkins setup in Ubuntu
What is Jenkins?
Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. (Wikipedia)
1. Required packages
sudo apt-get update
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
@adithya2306
adithya2306 / add_new_user.txt
Last active August 20, 2019 16:26
Create new SSH-enabled sudo user in a server
shopt -s dotglob
sudo adduser adithya --disabled-password --gecos ""
sudo gpasswd -a adithya sudo
sudo mkdir /home/adithya/.ssh
sudo chmod 700 /home/adithya/.ssh/
sudo sh -c "echo 'adithya ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
# Now copy paste ssh pubkey here
nano /home/adithya/.ssh/authorized_keys
@hfossli
hfossli / standard.sh
Last active September 19, 2024 05:27
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"
@shalzz
shalzz / sparse2img.sh
Created May 3, 2017 08:09
System image from stock sparse system images
simg2img system.img_sparsechunk.* system.img.raw.tmp
offset=`LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw.tmp | head -1 | awk '{print $1 - 1080}'`
dd if=system.img.raw.tmp of=system.img.raw ibs=$offset skip=1
@saleemrashid
saleemrashid / forkbomb.py
Created January 6, 2017 13:16
Windows "fork bomb" in Python
import subprocess, sys
while True:
subprocess.Popen([sys.executable, sys.argv[0]], creationflags=subprocess.CREATE_NEW_CONSOLE)
#!/bin/bash
# Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence
# Additionally JDK is needed
generate_buildenv() {
# Prepare build enviroment
mkdir lede_build
cd lede_build
git clone https://github.com/lede-project/source.git