Skip to content

Instantly share code, notes, and snippets.

View ghostrider-reborn's full-sized avatar
:shipit:
hac

Adithya ghostrider-reborn

:shipit:
hac
View GitHub Profile
@douglas
douglas / update_git_repos.sh
Created October 14, 2011 15:04
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
#
# Automatically generated file; DO NOT EDIT.
# LEDE Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
#!/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
@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)
@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
@hfossli
hfossli / standard.sh
Last active February 8, 2024 05:19
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]"
@ghostrider-reborn
ghostrider-reborn / 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
@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
@ghostrider-reborn
ghostrider-reborn / 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
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 ->