Skip to content

Instantly share code, notes, and snippets.

View bryteise's full-sized avatar

William Douglas bryteise

  • Intel
  • Portland, OR
View GitHub Profile
#!/usr/bin/zsh
function help() {
echo "qemu run wrapper"
echo "usage: qemu.sh [options] drive1 ... driveN"
echo ""
echo "options:"
echo " --vnc=# where # is a vnc port to use (will be offset by 5900)"
echo " --bridge=bridge-name (will run qemu via sudo for tap dev)"
echo " --memory=# where # is memory size in MB for the VM to use"
bash-bin
ca-certs-static
clr-boot-manager
clr-power-tweaks
clr-systemd-config
import os
import rpm
for i in os.listdir('.'):
if not i.endswith('.rpm'):
continue
fd = os.open(i, os.O_RDONLY)
ts = rpm.TransactionSet()
print(i)
try:
{
"swupd-client": {
"swupd-client-autostart": {},
"swupd-client-bin": {
"bsdiff-lib": {
"bsdiff-license": {},
"bzip2-lib": "Dependency subtree listed elsewhere",
"libc6": "Dependency subtree listed elsewhere",
"xz-lib": "Dependency subtree listed elsewhere",
"zlib-lib": "Dependency subtree listed elsewhere"
{
"swupd-client": {
"swupd-client-autostart": {},
"swupd-client-bin": {
"bsdiff-lib": {
"bsdiff-license": {}
},
"curl-lib": {
"dbus-lib": {
"dbus-data": {},
Copyright (c) 2000-2008 Adam M. Costello and Cosmin Truta.
This software may be modified only if its author and version
information is updated accurately, and may be redistributed
only if accompanied by this unaltered notice. Subject to those
restrictions, permission is granted to anyone to do anything
with this software. The copyright holders make no guarantees
regarding this software, and are not responsible for any damage
resulting from its use.
@bryteise
bryteise / make-3rd-party-bundle
Created January 14, 2020 17:58
mixer wrapper script to take a folder and make a 3rd-party bundle out of it (folder should be a chroot of the content of the bundle)
#!/bin/bash
set -u
# args bundle-name host-url content-dir
bundle_name="$1"
url="$2"
content_dir="$3
@bryteise
bryteise / make-bin-wrappers
Last active January 14, 2020 17:59
Call after 3rd-party bundle-add to create the PATH bin wrapper scripts
#!/bin/bash
set -u
if [ $UID -ne 0 ]; then
echo must be root
exit 1
fi
shopt -s extglob
%files dev
%defattr(-,root,root,-)
/usr/include/talloc.h
/usr/lib64/libpytalloc-util.cpython-37m-x86-64-linux-gnu.so
/usr/lib64/libtalloc.so
/usr/lib64/pkgconfig/pytalloc-util.cpython-37m-x86_64-linux-gnu.pc
/usr/lib64/pkgconfig/talloc.pc
%files extras
%defattr(-,root,root,-)
/usr/bin/kata-qemu-lite-system-x86_64 -name sandbox-a683dde1ea0202c61f4eea103044e70d709fbb74552ee204d78b0d1c94ee527f -uuid de43caba-f629-4a9f-9cec-fc53130ed9a9 -machine pc,accel=kvm,kernel_irqchip,nvdimm -cpu host -qmp unix:/run/vc/vm/a683dde1ea0202c61f4eea103044e70d709fbb74552ee204d78b0d1c94ee527f/qmp.sock,server,nowait -m 2048M,slots=10,maxmem=65209M -device pci-bridge,bus=pci.0,id=pci-bridge-0,chassis_nr=1,shpc=on,addr=2,romfile= -device virtio-serial-pci,disable-modern=false,id=serial0,romfile= -device virtconsole,chardev=charconsole0,id=console0 -chardev socket,id=charconsole0,path=/run/vc/vm/a683dde1ea0202c61f4eea103044e70d709fbb74552ee204d78b0d1c94ee527f/console.sock,server,nowait -device nvdimm,id=nv0,memdev=mem0 -object memory-backend-file,id=mem0,mem-path=/usr/share/kata-containers/kata-containers-image_clearlinux_1.5.0_agent_a581aebf473.img,size=536870912 -device virtio-scsi-pci,id=scsi0,disable-modern=false,romfile= -object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng,rng=rng0,romfi