Skip to content

Instantly share code, notes, and snippets.

View Masud2017's full-sized avatar
🎯
Focusing on some serious stuff XD

Md.Masud karim Masud2017

🎯
Focusing on some serious stuff XD
View GitHub Profile
@Masud2017
Masud2017 / 00.install-android-sdk.sh
Created July 12, 2024 14:00 — forked from nhtua/00.install-android-sdk.sh
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@Masud2017
Masud2017 / compiling_asm.md
Created May 15, 2024 07:32 — forked from yellowbyte/compiling_asm.md
how to assemble assembly with NASM assembler to 32-bit or 64-bit ELF binary with or without libc

32-bit ELF binary

how to assemble and link:

nasm -f elf32 -o <filename>.o <filename>.asm
ld -m elf_i386 -o <filename> <filename>.o

template code (hello world):

section .text
global _start