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
// ******************************************************************************* | |
// Adapted from https://docs.keyestudio.com/projects/KS0559/en/latest/Arduino/arduino.html | |
/* | |
Keyestudio 4wd BT Car | |
Lesson 17 | |
Bluetooth Multifunctional Car | |
http://www.keyestudio.com | |
*/ | |
#define HAS_LED // Comment out if the LED module is not attached to D9 |
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
# frozen_string_literal: true | |
require 'cgi' | |
require 'json' | |
require 'open-uri' | |
require 'yaml' | |
UA = 'Ruby script to read the full list of bangs/2.0 ; https://gist.github.com/skull-squadron/f53c38c678045660a36a5fcd1f50196a' | |
module Flow |
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 |
NewerOlder