Hardware | CPU | # of cores (A) | OS | Time spent on make modules (B) | 1 / (B) / (A) |
---|---|---|---|---|---|
Apple MacBook Air M2 | Apple Silicon M2 (4 x efficiency cores @2.4GHz, 4 x performance cores @3.5GHz) | 8 | Fedora Linux Asahi Remix 38 | 30m4.815s | 6.926e-05 |
Lenovo ThinkPad P1 Gen 2 | Intel Core i7 9850H @2.60GHz | 12 | Fedora Linux 38 | 44m28.919s | 3.122e-05 |
Dell PowerEdge R640 | Intel Xeon Silver 4108 @1.80GHz | 32 | Fedora Linux 38 | 18m44.802s | 2.778e-05 |
Lenovo ThinkPad P16v Gen 1 | AMD Ryzen 7 PRO 7840HS @3.8GHz | 16 | Fedora Linux 39 | 15m2.816s | 6.923e-05 |
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/bash | |
# To build podman, you have enough resource on the instance. | |
# I tested this script on t2.xlarge. | |
topdir=${HOME}/work | |
mkdir -p ${topdir} | |
# Install prereq rpms | |
sudo dnf install -y git golang libseccomp-devel gpgme-devel autoconf automake libtool yajl yajl-devel libcap-devel systemd-devel cni-plugins iptables-nft rpm-build meson golang-github-cpuguy83-md2man.x86_64 |
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
# virsh qemu-monitor-command DOMAIN '{"execute": "query-commands"}' --pretty | |
# virsh qemu-monitor-command DOMAIN --hmp 'help' | |
# virsh qemu-monitor-command instance-00000002 '{"execute": "query-status"}' | |
{"return":{"status":"running","singlestep":false,"running":true},"id":"libvirt-5137"} | |
# virsh qemu-monitor-command instance-00000002 '{"execute": "query-status"}' --pretty | |
{ | |
"return": { | |
"status": "running", |
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/bash | |
profile=blank | |
install_mode=hcp | |
cluster_name=hcp | |
#install_mode=classic | |
#cluster_name=classic | |
if [ x"$#" != x"1" ]; then |
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 | |
# Prereq: PyCrypto | |
# Validation: https://www.samltool.com/decrypt.php | |
# Usage: ./decrypt_saml_response.py --key PRIVATE_KEY --pretty-print RESPONSE_XML | |
import sys | |
import optparse | |
import base64 |
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
[ori@fedora linux-6.3]$ cat /sys/firmware/devicetree/base/model | awk '1' | |
Apple MacBook Air (13-inch, M2, 2022) | |
[ori@fedora linux-6.3]$ uname -a | |
Linux fedora 6.2.11-450.asahi.fc38.aarch64 #1 SMP PREEMPT_DYNAMIC Mon Apr 17 00:28:53 UTC 2023 aarch64 GNU/Linux | |
[ori@fedora linux-6.3]$ time openssl speed 2>&1 | tee log.openssl | |
Doing md5 for 3s on 16 size blocks: 16773642 md5's in 3.00s | |
Doing md5 for 3s on 64 size blocks: 10167926 md5's in 3.00s | |
Doing md5 for 3s on 256 size blocks: 4570146 md5's in 3.00s | |
Doing md5 for 3s on 1024 size blocks: 1427362 md5's in 3.00s | |
Doing md5 for 3s on 8192 size blocks: 192390 md5's in 3.00s |
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
sudo dnf update | |
sudo reboot | |
sudo dnf install https://cbs.centos.org/kojifiles/packages/centos-release-kmods/2/4.el9s/noarch/centos-release-kmods-2-4.el9s.noarch.rpm | |
sudo dnf install kmod-btrfs-5.14.0.45-2.el9s.x86_64 | |
sudo modprobe btrfs | |
sudo mkfs.btrfs /dev/vdb | |
sudo mount /dev/vdb /mnt |
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/bash | |
# https://github.com/openshift/os/blob/master/docs/faq.md#q-how-do-i-determine-what-version-of-an-rpm-is-included-in-an-rhcos-release | |
export REGISTRY_AUTH_FILE=~/.config/containers/auth.json | |
if [ x"$#" != x"2" ]; then | |
echo "$0 ocp_version package_name" | |
exit 1 | |
fi |
NewerOlder