Skip to content

Instantly share code, notes, and snippets.

View Larusso's full-sized avatar
🍪
Ohmnomnom

Manfred Endres Larusso

🍪
Ohmnomnom
  • Wooga
  • Berlin
View GitHub Profile
#!/usr/bin/env zsh
#
# Bootstrap program for the system.
#
# Enable the default zsh options
emulate zsh
setopt errexit # exit the script if any statement returns a non-true valu
setopt pipefail # unveil hidden pipeline command errors
@Larusso
Larusso / check_elf_alignment.sh
Last active July 25, 2025 10:33
A slightly changed version of check_elf_alignment.sh which fails with exit code and prints proper on macOS
#!/bin/bash
progname="${0##*/}"
progname="${progname%.sh}"
# usage: check_elf_alignment.sh [path to *.so files|path to *.apk]
cleanup_trap() {
if [ -n "${tmp}" ] && [ -d "${tmp}" ]; then
rm -rf "${tmp}"
fi