Skip to content

Instantly share code, notes, and snippets.

View robbat2's full-sized avatar

Robin H. Johnson robbat2

View GitHub Profile
label: gpt
label-id: BCF8FB7F-A652-4E38-A3E1-7E640494828E
device: /dev/nvme0n1
unit: sectors
sector-size: 4096
/dev/nvme0n1p1 : start= 256, size= 130816, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=3DE88D22-BCD1-4CE1-9E59-C13AC363EE86, name="primary"
/dev/nvme0n1p2 : start= 131072, size= 262144, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=C238F704-60A0-4481-A64B-EB5C54BC9E4B, name="primary"
/dev/nvme0n1p3 : start= 393216, size= 468449792, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=B011E232-810F-4857-9587-AEE5146C3090, name="logical"
/dev/nvme0n1p4 : start= 468843094, size= 508, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=9594B208-73D0-42D9-90A1-C58BE1DC37F2, name="logical"
To: gentoo-nfp@lists.gentoo.org,
gentoo-project@lists.gentoo.org,
gentoo-dev-announce@lists.gentoo.org,
gentoo-announce@lists.gentoo.org,
gentoo-foundation-announce@lists.gentoo.org
Subject: Gentoo Foundation 2024 Election: Recording Date, Nomination & Voting schedule
Reply-To: gentoo-nfp@lists.gentoo.org
This email serves as the legally required notice of the Gentoo
Foundation 2024 election.
$ gpg --verify test.asc test
gpg: Signature made Sun 21 Apr 2024 01:09:48 PM PDT
gpg: using EDDSA key 9AC275DCB7764E1481FDADA4A30516BE702D81A9
gpg: Good signature from "Matthias Maier" [unknown]
gpg: aka "Matthias Maier <maier@tamu.edu>" [unknown]
gpg: aka "Matthias Maier <msmaier@umn.edu>" [unknown]
gpg: aka "Matthias Maier <tamiko@43-1.org>" [unknown]
gpg: aka "Matthias Maier <tamiko@gentoo.org>" [unknown]
gpg: aka "Matthias Maier <maier@math.tamu.edu>" [unknown]
gpg: aka "Matthias Maier <tamiko@kyomu.43-1.org>" [unknown]
## Why become an SPI Associated Project?
Gentoo, as a collective of software developers, is pretty good at being a Linux
distribution. However, the legal & organization overhead required to convert
the existing corporation into a successful non-profit recognized at the federal
level in the USA would be a significant increase in non-development workload.
The historical baggage of the Gentoo Foundation, with bylaws restricted
behavior to that of a non-profit, and as a non-profit recognized only in the
state of New Mexico, but considered as a for-profit entity at the US federal
@robbat2
robbat2 / CEPH-STATICSITES-HOWTO.md
Last active March 28, 2024 17:28
Ceph staticsites config RGW static website serving & SNI

Ceph StaticSites Configuration, with HAProxy & SNI

An instructional document by Robin H Johnson robin.johnson@dreamhost.com. I wrote much of the staticsites functionality of Ceph-RGW, during during late 2015 and early 2016, based on an early prototype by Yehuda Sadeh (yehudasa). It was written for usage at Dreamhost, but developed in the open for community improvement.

It is fully functional as of Jewel v10.2.3 plus PR11280 (ceph/ceph#11280). Prior to that, neither the non-CNAME nor CNAME-to-service modes will function correctly.

These configuration files represent how to quickly set up RGW+HAProxy for staticsite serving. I've tried to make them more readable, without leaving out too many details. You are strongly recommended to run a seperate RGW instance for staticsites, on a DIFFERENT outward-faciing IP than your normal instance (and in fact, certain functionality is not supported without it).

In place of using HAProxy, you could run the second rgw instance on port 80,

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby30 ruby31 ruby32"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
> /var/tmp/portage/sys-libs/glibc-2.37-r10/work/build-x86-x86_64-pc-linux-gnu-nptl/tests.sum
FAIL: elf/constload1
FAIL: elf/dblload
FAIL: elf/dblunload
FAIL: elf/ifuncmain6pie
FAIL: elf/lateglobal
FAIL: elf/loadtest
FAIL: elf/preloadtest
FAIL: elf/reldep6
FAIL: elf/restest1
@robbat2
robbat2 / gist:f37e2ba2fbcd2c56cb8547f93dccae52
Last active January 7, 2024 21:13
gentoo bug stats, creation & resolved, as of 2024/01/07
MariaDB [gentoo-bugs]> select now(); \
select count(distinct bug_id), YEAR(bugs_activity.bug_when) AS yyyy \
FROM bugs_activity \
WHERE fieldid=8 AND added='RESOLVED' GROUP BY yyyy ORDER BY yyyy; \
SELECT COUNT(distinct bug_id), EXTRACT(YEAR FROM creation_ts) AS yyyy \
FROM bugs \
GROUP BY yyyy \
ORDER BY yyyy;
+---------------------+
#!/bin/bash
# Clean up a x509 cert to make it nice to use
# supports multiple certs in the same file!
#
# Copyright 2014-2018 Robin H Johnson <robbat2@gentoo.org>
# Licensed under the BSD-3 license
# http://opensource.org/licenses/BSD-3-Clause
TMP=$(mktemp)
TMPD=$(mktemp -d)
TMPOUT=$(mktemp)
#!/bin/bash
# XFS defrag helper script
# Copyright 2010-2018 Robin H. Johnson <robbat2@gentoo.org>
# Originally written for IsoHunt, later improved for BC Libraries Cooperative & Dreamhost
#
# For each filesystem
# 1. get complete output of inode/fragments
# 2. select all inodes w/ more than 10 excess fragments (actual-ideal)
# 3. just the inode lines, not directories or other stats
# 4. sort inodes by number of fragments, descending