Skip to content

Instantly share code, notes, and snippets.

View robbat2's full-sized avatar

Robin H. Johnson robbat2

View GitHub Profile
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
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
--- 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 April 27, 2019 20:11
lvm udev init.d demo for rc_need
rc_need=udev
#!/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 April 10, 2019 06:56
cfengine2 openrc 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 April 8, 2019 15:30
dss_rand() phpBB PRNG improvement
/**
* 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.
--- /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 April 4, 2019 22:17
Makefile for git precommit
# 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
#
diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash
index 309be45..e8da911 100755
--- a/create-dev-keyrings.bash
+++ b/create-dev-keyrings.bash
@@ -28,8 +28,11 @@ grab_keys() {
local missing=()
local remaining=( "${@}" )
+ KS1=hkp://keys.gentoo.org/
+ KS2=hkps://hkps.pool.sks-keyservers.net/