Skip to content

Instantly share code, notes, and snippets.

Robin H. Johnson robbat2

Block or report user

Report or block robbat2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:17869389cfcb524a92835d784817f01a
From 42d7d8dda81902ae31dfab8ab4215c2626765e11 Mon Sep 17 00:00:00 2001
From: "Robin H. Johnson" <robbat2@gentoo.org>
Date: Sun, 21 Jul 2019 16:33:31 +0000
Subject: [PATCH] firmware: log names of loaded firmware
It's non-trivial to figure out names of firmware that was actually
loaded, add a print statement at the end of _request_firmware that logs
the name & result of each firmware.
This is esp. valuable early in boot, before logging of UEVENT is
View gist:d0b66cdc07b133da3e41a27ab1b38941
commit f7492b3591be4e0a0dc9a6338f3c9b5fb21f4948
Author: Robin H. Johnson <robbat2@gentoo.org>
Date: Fri Sep 6 09:29:25 2019 -0700
dev-python/awscli: update deps
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
diff --git a/dev-python/awscli/awscli-1.16.233.ebuild b/dev-python/awscli/awscli-1.16.233.ebuild
index dcc4ab4018c1..63afdae0e49d 100644
View gist:475fd6215cb37bd4bc08e85174db5dbe
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild
index dc0a935d311d..554393dadce6 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild
@@ -17,9 +17,14 @@ fi
DESCRIPTION="Linux firmware files"
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
-LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
+# If USE=bindist, the resulting binpkg should be @BINARY-REDISTRIBUTABLE
View lvm-2.02.184-r3-optional_udev.patch
--- lvm2-2.02.184-r2.ebuild 2019-04-27 14:03:01.572038437 -0700
+++ lvm2-2.02.184-r3.ebuild 2019-05-07 12:02:51.005343031 -0700
@@ -215,8 +215,15 @@
if use !device-mapper-only ; then
newinitd "${FILESDIR}"/dmeventd.initd-2.02.184-r2 dmeventd
- newinitd "${FILESDIR}"/lvm.rc-2.02.183 lvm
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
+ newinitd "${FILESDIR}"/lvm.rc-2.02.184-r3 lvm
+ newconfd "${FILESDIR}"/lvm.confd-2.02.184-r3 lvm
@robbat2
robbat2 / etc_conf.d_demo
Created Apr 27, 2019
lvm udev init.d demo for rc_need
View acme-authorize.rb
#!/usr/bin/ruby
# Gentoo Infrastructure custom LetsEncrypt client
# Copyright 2019 Robin H. Johnson <robbat2@gentoo.org>
#
# TODO: fails on GeoDNS DNS still
#
# Runs ACME new_order cycle, and completes DNS challenges
# - uses RFC2316 (nsupdate protocol)
# - does direct TXT or DNS alias/CNAME TXT
# - runs all authorizations ONLY
@robbat2
robbat2 / cfservd.initd
Created Apr 10, 2019
cfengine2 openrc initd
View cfservd.initd
#!/sbin/openrc-run
depend() {
need net
}
command=/usr/sbin/cfservd
PIDFILE=/run/${SVCNAME}.pid
command_args=''
command_args_foreground='-F'
@robbat2
robbat2 / dss_rand.php
Created Apr 8, 2019
dss_rand() phpBB PRNG improvement
View dss_rand.php
/**
* Our own generator of random values
* This uses a constantly changing value as the base for generating the values
* The board wide setting is updated once per page if this code is called
* With thanks to Anthrax101 for the inspiration on this one
* Added in phpBB 2.0.20
*
* 2009-08-19 robbat2: PRNG improvements
* - completely modify it to NOT touch the database and return a much better grade of random
* - carry out local PRNG state in $dss_seeded.
View require-signed-push.diff
--- /var/lib/gitolite/local/hooks/repo-specific/require-signed-push.old 2019-04-07 23:40:45.055782255 +0000
+++ /var/lib/gitolite/local/hooks/repo-specific/require-signed-push 2019-04-07 23:46:11.399007310 +0000
@@ -1,7 +1,7 @@
#!/bin/bash
VERIFY_SIGS=$(git config --get gentoo.verify-signatures)
-: ${VERIFY_SIGS:=gentoo-devs}
+: "${VERIFY_SIGS:=gentoo-devs}"
# ----------------------------------------------------------------------
@robbat2
robbat2 / Makefile
Last active Apr 4, 2019
Makefile for git precommit
View Makefile
# Puppet validation & lint Makefile
# Copyright 2014-2015 Robin Johnson <robbat2@gentoo.org>
#
# Targets:
# all: does validate, lint, check-footer
# validate: runs validations on many filetypes
# lint: runs puppet-lint only
# check: alias for validate
# validate.${FILETYPE}: validate a specific filetype, eg validate.pp
#
You can’t perform that action at this time.