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
--- a/src/aafire.c | |
+++ b/src/aafire.c | |
@@ -2,4 +2,5 @@ | |
#include <stdlib.h> /* exit() */ | |
+#include <time.h> | |
#include "aalib.h" | |
#define XSIZ aa_imgwidth(context) | |
@@ -135,14 +136,29 @@ drawfire (void) | |
aa_scrheight (context)); |
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 | |
# https://stackoverflow.com/questions/79015158/why-is-gem-clean-reporting-multiple-ambiguous-references-to-the-default-psych | |
# https://stackoverflow.com/q/79015158 | |
targets() { | |
find "$(gem env home)"/specifications/default -name 'rdoc-*.gemspec' | |
} |
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
#include <dirent.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#ifdef __APPLE__ | |
#include <sys/syslimits.h> | |
#endif | |
#include <sys/types.h> | |
int count(char *path, size_t n) { |
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' |
NewerOlder