Skip to content

Instantly share code, notes, and snippets.

View teg's full-sized avatar

Tom Gundersen teg

  • Red Hat
  • London, UK
View GitHub Profile
Dairy farming is hugely unsustainable. It’s a leading contributor to greenhouse gas emissions and a majorly inefficient use of resources. Plant-based alternatives also aren’t good enough. They are inferior in terms of flavour and nutrition and have limited usability as food ingredients.
This company uses synthetic biology and yeast fermentation to produce dairy products following a similar process to brewing beer. Their products, molecularly identical to traditional dairy, seamlessly plug in to existing recipes and supply chains. They have taken to the lab and already produced their first results.
@teg
teg / compose_request.json
Last active June 16, 2020 11:40
Build RHEL for Edge
{
"distro": "rhel-8",
"arch": "x86_64",
"image-type": "rhel-edge-commit",
"repositories": [
{
"baseurl": "http://download.devel.redhat.com/rhel-8/rel-eng/RHEL-8/latest-RHEL-8/compose/BaseOS/x86_64/os",
"gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBErgSTsBEACh2A4b0O9t+vzC9VrVtL1AKvUWi9OPCjkvR7Xd8DtJxeeMZ5eF\n0HtzIG58qDRybwUe89FZprB1ffuUKzdE+HcL3FbNWSSOXVjZIersdXyH3NvnLLLF\n0DNRB2ix3bXG9Rh/RXpFsNxDp2CEMdUvbYCzE79K1EnUTVh1L0Of023FtPSZXX0c\nu7Pb5DI5lX5YeoXO6RoodrIGYJsVBQWnrWw4xNTconUfNPk0EGZtEnzvH2zyPoJh\nXGF+Ncu9XwbalnYde10OCvSWAZ5zTCpoLMTvQjWpbCdWXJzCm6G+/hx9upke546H\n5IjtYm4dTIVTnc3wvDiODgBKRzOl9rEOCIgOuGtDxRxcQkjrC+xvg5Vkqn7vBUyW\n9pHedOU+PoF3DGOM+dqv+eNKBvh9YF9ugFAQBkcG7viZgvGEMGGUpzNgN7XnS1gj\n/DPo9mZESOYnKceve2tIC87p2hqjrxOHuI7fkZYeNIcAoa83rBltFXaBDYhWAKS1\nPcXS1/7JzP0ky7d0L6Xbu/If5kqWQpKwUInXtySRkuraVfuK3Bpa+X1XecWi24JY\nHVtlNX025xx1ewVzGNCTlWn1skQN2OOoQTV4C8/qFpTW6DTWYurd4+fE0OJFJZQF\nbuhfXYwmRlVOgN5i77NTIJZJQfYFj38c/Iv5vZBPokO6mffrOTv3MHWVgQARAQAB\ntDNSZWQgSGF0LCB
"NetworkManager"
"NetworkManager-libnm"
"abattis-cantarell-fonts"
"acl"
"adobe-source-code-pro-fonts"
"adwaita-cursor-theme"
"adwaita-icon-theme"
"alternatives"
"at-spi2-atk"
"at-spi2-core"
--- Expected
+++ Actual
@@ -516,3 +516,3 @@
(string) (len=5) "label": (string) (len=11) "EFI\\ System",
- (string) (len=8) "partuuid": (string) (len=36) "608be35d-1dad-5040-a742-4285336cb86d",
+ (string) (len=8) "partuuid": (string) (len=36) "f5eeb8c1-f360-0042-ae58-bef8458ae438",
(string) (len=4) "size": (float64) 4.980736e+08,
@@ -526,3 +526,3 @@
(string) (len=5) "label": (interface {}) <nil>,
- (string) (len=8) "partuuid": (string) (len=36) "3298bcce-b9d6-8947-b6e4-ba59272789ec",
@teg
teg / fd-error.log
Created March 27, 2020 23:09
osbulid: invalid fd bug
=== RUN TestImages/test/cases/f31-x86_64-qcow2-boot.json
curl: (28) Connection timed out after 10909 milliseconds
curl: (28) Connection timed out after 10905 milliseconds
curl: (28) Connection timed out after 10934 milliseconds
Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=False debug=False>>
@teg
teg / build-rpm-koji.sh
Created February 20, 2020 22:52
Script to build rpms in koji from a given git commit
#!/bin/bash
set -e
OUTPUTDIR=$1
ORG=$2
REPO=$3
COMMIT=$4
SPECFILE=$5
RELEASE=$6
@teg
teg / f31.json
Created January 27, 2020 19:23
fedora 31 pipeline
{
"build": {
"pipeline": {
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"repos": [
{
"metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-31&arch=x86_64",
@teg
teg / pipeline.json
Created January 27, 2020 10:18
qcow2 fedora-30 x86_64 pipeline
{
"build": {
"pipeline": {
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"repos": [
{
"metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-30&arch=x86_64",
@teg
teg / rhel82-openstack-aarch64.json
Created December 13, 2019 12:04
$ go run ./cmd/osbuild-^Cpeline/ -distro rhel-8.2 -output-format openstack -arch aarch64
{
"build": {
"pipeline": {
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"repos": [
{
"baseurl": "http://download-ipv4.eng.brq.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8/compose/BaseOS/aarch64/os",
@teg
teg / qcow2-aarch64-image-info.json
Created December 12, 2019 20:24
image-info for qcow2 aarch64 fedora-30
{
"boot-environment": {
"GRUB2_BOOT_FS_UUID": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
"GRUB2_ROOT_FS_UUID": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
"kernelopts": "root=UUID=76a22bf4-f153-4541-b6c7-0332c0dfaeac ro biosdevname=0 net.ifnames=0"
},
"bootloader": "unknown",
"bootmenu": [
{
"grub_arg": "--unrestricted",