Skip to content

Instantly share code, notes, and snippets.

View themactep's full-sized avatar

Paul Philippov themactep

View GitHub Profile
@unmanned-player
unmanned-player / detect-musl.sh
Last active February 25, 2025 16:53
Actually detecting musl library
#! /bin/sh
# SPDX-License-Identifier: WTFPL
# Actually detecting musl libc.
# How it works
# -------------
#
# WARNING - This is a hack and the concept will likely change in future.
@LozanoMatheus
LozanoMatheus / get_ip.sh
Created November 30, 2020 21:41
Get Linux IP without any tool
#!/usr/bin/env bash
## Get the primary and secundary IPs
awk '/\|--/ && !/\.0$|\.255$/ {print $2}' /proc/net/fib_trie
## Get only the primary IPs
awk '/32 host/ { print i } {i=$2}' /proc/net/fib_trie
@hutson
hutson / m4.patch
Last active February 2, 2022 16:52
m4 1.4.18
From c79aedf13fe693da0fc5c4ff727aed5bd43526dc Mon Sep 17 00:00:00 2001
From: Hutson Betts <[email protected]>
Date: Thu, 10 Dec 2020 21:13:54 -0600
Subject: [PATCH] glibc 2.28
diff --git a/lib/fflush.c b/lib/fflush.c
index ef2a7f1..787790d 100644
--- a/lib/fflush.c
+++ b/lib/fflush.c
U-Boot SPL 2013.07 (Mar 19 2021 - 11:29:15)
Timer init
CLK stop
PLL init
pll_init:366