Skip to content

Instantly share code, notes, and snippets.

View anjannath's full-sized avatar
🏴‍☠️

Anjan Nath anjannath

🏴‍☠️
  • Red Hat
  • Earth
View GitHub Profile
@anjannath
anjannath / azcomputeresource.go
Created August 8, 2024 10:31
Filter Azure compute resources
package main
import (
"context"
"fmt"
"log"
"os"
"strconv"
"sync"
@anjannath
anjannath / pvc.yaml
Created April 11, 2023 11:54
pv_test_crc_dynamic
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: testpvc-claim
namespace: testpvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
@anjannath
anjannath / crc_logs.txt
Created February 9, 2023 10:29
CRC Cert rotation test
❯ ./crc start --log-level debug -p /tmp/pull-secret
DEBU CRC version: 2.13.1+72187d13
DEBU OpenShift version: 4.12.1
DEBU Podman version: 4.3.1
DEBU Running 'crc start'
DEBU Total memory of system is 34359738368 bytes
DEBU Unable to find out if a new version is available: Get "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/release-info.json": x509: certificate has expired or is not yet valid: “access.redhat.com” certificate is expired
DEBU Checking file: /Users/anjan/.crc/machines/crc/.crc-exist
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Kubelet client certificate has expired, renewing it... [will take up to 8 minutes]
DEBU retry loop: attempt 0
DEBU Waiting for availability of resource type 'csr'
DEBU retry loop: attempt 0
DEBU Running SSH command: timeout 5s oc get csr --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: Process exited with status 1, output:
DEBU The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?
DEBU error: Temporary error: ssh command error:
command : timeout 5s oc get csr --context admin --cluster crc --kubeconfig /opt/kubeconfig
err : Process exited with status 1
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app.kubernetes.io/component: storage
app.kubernetes.io/managed-by: hostpath-provisioner-operator
app.kubernetes.io/part-of: hyperconverged-cluster
app.kubernetes.io/version: 4.11.0
k8s-app: hostpath-provisioner
prometheus.hostpathprovisioner.kubevirt.io: "true"
Uncaught Exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/node_modules/got/dist/source/index.js from /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js not supported.
Instead change the require of index.js in /private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js to a dynamic import() which is available in all CommonJS modules.
at c._load (node:electron/js2c/asar_bundle:5:13339)
at Object.<anonymous> (/private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/commander.js:4:13)
at c._load (node:electron/js2c/asar_bundle:5:13339)
at Object.<anonymous> (/private/tmp/trays/crc-tray-darwin-universal/crc-tray.app/Contents/Resources/app.asar/build/src/main.js:31:21)
at c._load (node:electron/js2c/asar_bundle:5:13339)
at Object.<anonymous> (node:electron/js2c/browser_init:189
$ crc start --log-level debug
DEBU CRC version: 2.6.0.999+2686dd6e
DEBU OpenShift version: 4.11.0-0.okd-2022-07-29-154152
DEBU Podman version: 4.1.1
DEBU Running 'crc start'
DEBU Total memory of system is 14139076608 bytes
DEBU Unable to find out if a new version is available: Invalid Semantic Version
DEBU Checking file: /home/anjan/.crc/machines/crc/.crc-exist
DEBU Found binary path at /home/anjan/.crc/bin/crc-driver-libvirt
DEBU Launching plugin server for driver libvirt
# podman 4.1.1 from brew with 9p
[core@localhost ~]$ uname -r -s -v
Linux 5.18.13-200.fc36.aarch64 #1 SMP PREEMPT_DYNAMIC Fri Jul 22 13:44:25 UTC 2022
[core@localhost ~]$ fio --name=random-readers --filename=testfile --ioengine=libaio --iodepth=16 --rw=randrw --bs=512 --direct=0 --size=1G --numjobs=1 --runtime=60s --group_reporting --fallocate=none --time_based --thread --invalidate=1
random-readers: (g=0): rw=randrw, bs=(R) 512B-512B, (W) 512B-512B, (T) 512B-512B, ioengine=libaio, iodepth=16
fio-3.29
Starting 1 thread
Jobs: 1 (f=1): [m(1)][100.0%][r=24.6MiB/s,w=24.8MiB/s][r=50.4k,w=50.7k IOPS][eta 00m:00s]
random-readers: (groupid=0, jobs=1): err= 0: pid=1395: Mon Aug 1 17:33:47 2022
read: IOPS=35.0k, BW=17.1MiB/s (17.9MB/s)(1026MiB/60001msec)
diff --git a/configure.ac b/configure.ac
index f4f2a59d9a..bf0b001e82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,6 +203,20 @@ case $host_cpu in
;;
esac
+# Check if the assembler supports -march=all
+if test "$hw_accel" = aarch64; then

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.