120417342 glibc-common
14623272 coreutils
14000291 glibc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/sh | |
# Clone a copy-on-write "gold" cloud image, resize it to the target, and | |
# use virt-install to create a VM, attaching a cloud-init metadata ISO. | |
# Run in /var/lib/libvirt/images | |
img=$1 | |
shift | |
name=$1 | |
shift | |
size=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run like this: $ python ~/tmp/foo.py '(a(s(taya{sv}))a{sv})' /srv/rhel-atomic-host/repo/summary | |
#!/usr/bin/env python | |
import os,sys | |
from gi.repository import GLib | |
typestr = GLib.VariantType.new(sys.argv[1]) | |
data = open(sys.argv[2]).read() | |
bytedata = GLib.Bytes.new(data) |
Code exists in a branch of rpm-ostree:
https://github.com/cgwalters/rpm-ostree/commits/libhif-next-compose-dockerimages
Dockerfile is an imperative format that allows doing anything, and as a consequence the tooling around it (docker itself, rel-eng tools) are unable to accurately optimize.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys,math | |
buckets = {} | |
for f in open(sys.argv[1]).readlines(): | |
f.strip() | |
s,p = f.split(' ', 1) | |
sz = int(s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xe | |
function umountcleanup() { | |
umount -R $1 2>/dev/null || true | |
} | |
umountcleanup initramfs | |
rm -f initramfs.img | |
dd if=/dev/zero of=initramfs.img seek=20M bs=1 count=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat reposync.sh | |
#!/bin/sh | |
# Mirror a subset of packages from yum repositories, creating local | |
# repos for them. | |
set -e | |
run() { | |
echo "$@" | |
$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import ctypes | |
import sys | |
import os | |
import subprocess | |
f = None | |
libc = ctypes.CDLL('libc.so.6') | |
myfd = os.open('/proc/1/ns/mnt', os.O_RDONLY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fc1eede8883bdad29eaaf0fd6d4bdfc5797e5d93 Mon Sep 17 00:00:00 2001 | |
From: Colin Walters <[email protected]> | |
Date: Fri, 12 Jun 2015 15:42:29 -0400 | |
Subject: [PATCH] Add two backported patches | |
First is a critical issue upstream in 7.1.2. | |
Second is also a breakage specific to Anaconda. | |
--- | |
...0001-sysroot-Close-sysroot-fd-in-finalize.patch | 27 +++++++ | |
.../sysroot-sort-returned-bootloader-configs.patch | 89 ++++++++++++++++++++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"os" | |
"fmt" | |
"strings" | |
) | |
type rot13Reader struct { |
OlderNewer