dnf --setopt=tsflags=noscripts install ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
[ -t 1 ] || exec cat | |
r=$'\e[91m' g=$'\e[92m' y=$'\e[93m' reset=$'\e[0m' | |
exec perl -pe "s/\.\. (?!yes$|no$)(.+)/.. ${y}\\1${reset}/i;s/\.\. (no)$/.. ${r}\\1${reset}/i;s/\.\. (yes)$/.. ${g}\\1${reset}/i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
set -Eeuo pipefail | |
REV=2024 | |
SPECFILE= | |
trap 'e=$?; trap - EXIT; [ -z "$SPECFILE" ] || rm -rf "$SPECFILE"; exit $e' EXIT | |
SPECFILE="$(mktemp)" | |
cat >"$SPECFILE" <<HEADER | |
Name: texlive-FAKE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'openssl' | |
class Base32 | |
ALPHABET = (('A'..'Z').to_a + ('2'..'7').to_a).map(&:freeze).freeze | |
PADDING_CHAR = '=' | |
BITS_PER_BYTE = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! new_lazy_static { | |
($(#[$a:meta])* $v:vis fn $i:ident() -> &$t:ty $b:block $($rest:tt)*) => { | |
__new_lazy_static_inner!($(#[$a])*, $v, $i, Box<&$t>, $t, Box::new($b)); | |
new_lazy_static!($($rest)*); | |
}; | |
($(#[$a:meta])* $v:vis fn $i:ident() -> $t:ty $b:block $($rest:tt)*) => { | |
__new_lazy_static_inner!($(#[$a])*, $v, $i, $t, $t, $b); | |
new_lazy_static!($($rest)*); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[[ "${BASH_VERSINFO[0]}" -ge 4 ]] || { | |
echo >&2 'Requires bash >= 4' | |
exit 1 | |
} | |
set -Eeuo pipefail | |
[ -z "${DEBUG-}" ] || set -x | |
if [ "$#" = 0 ]; then | |
cat >&2 << 'USAGE' |
- Zero dependencies
- Zero heap allocations
- Unrolled and inlineable
- Sensibly debuggable using line-oriented breakpoints
- Buffer-oriented functions usable in embedded and kernel development
- Optional 128-bit integer support where
__int128
andunsigned __int128
are available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Needed for btrfs support on RH/Fedora-derived platforms | |
set -Eeuo pipefail | |
files=(containerd containerd-shim-runc-v2 ctr docker dockerd docker-init docker-proxy runc) | |
url_prefix="https://download.docker.com/linux/static/stable/$(/bin/arch)/" | |
ua='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' | |
tarball=$(/bin/curl -fsSL -A "$ua" "$url_prefix" | /bin/grep -Eo 'docker-[0-9.]+tgz' | /bin/sort -Vur | /bin/head -1) | |
url="${url_prefix}${tarball}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS ?= -std=c99 -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpedantic -Wformat=2 -flto -O3 -DNEBUG | |
build: find-crc32-worker | |
find-crc32-worker: find-crc32-worker.c Makefile | |
$(CC) $(CFLAGS) -lz $< -o $@ | |
clean: | |
rm -f find-crc32-worker |
NewerOlder