Skip to content

Instantly share code, notes, and snippets.

@praiskup
praiskup / gist:0ef34bd73f8ee3b19cab12d36f7a17d7
Created January 19, 2024 11:43
Find file-deps in spec-files
#! /usr/bin/python3
import time
from glob import glob
from specfile import Specfile
OK_MACRO_DEPS = [
'__make',
'__perl',
]
@praiskup
praiskup / logrotate-friendly-log-pipe
Last active December 12, 2021 11:43
Helper for Lighttpd + Logrotate + server.max-workers mode.
#! /bin/sh
# logrotate-friendly-log-pipe <output-log-file>
#
# Pipe logs to the <output-log-file>. Reopen the file upon the SIGHUP signal.
#
# This is especially useful when a multi-process Lighttpd server is used (with
# the 'server.max-workers = N' option), and use of Cronolog is not desirable:
# https://redmine.lighttpd.net/projects/1/wiki/Server_max-workerDetails
#
@praiskup
praiskup / test_in_parallel
Created January 26, 2017 15:06
Parallell run of tests in sclorg/postgresql-container
#! /bin/sh
# GPLv3+
images='
centos/postgresql-95-centos7:9.5
centos/postgresql-94-centos7:9.4
'
wait_for=