Skip to content

Instantly share code, notes, and snippets.

View osalbahr's full-sized avatar

Osama Albahrani osalbahr

View GitHub Profile
@osalbahr
osalbahr / neofetch-rpmbuild-error.md
Last active November 3, 2023 17:51
rpmbuild: cp: preserving permissions for [...]: No data available

The following uses files from https://src.fedoraproject.org/fork/osalbahr/rpms/neofetch:

[nebula-toolbox@44544e1114fd ~]$ tree ~/rpmbuild/
/home/nebula-toolbox/rpmbuild/
├── SOURCES
│   ├── fedora_logo.patch
│   └── neofetch-7.1.0.tar.gz
└── SPECS
    └── neofetch.spec
@osalbahr
osalbahr / compiler-versions.md
Last active September 11, 2023 18:10
`gcc-13` uninitialized value lack of warning after a loop?
$ gcc-13 --version
gcc-13 (Homebrew GCC 13.2.0) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ clang --version 
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
@osalbahr
osalbahr / comment.md
Created August 25, 2023 01:59
Hyfetch's `neofetch -vv 2>neofetch.log` on a MacBook Pro running Fedora Silverblue
@osalbahr
osalbahr / experiment-fio.md
Last active March 4, 2024 09:11
Experimenting with `fio` - Flexible I/O tester on NFS vs fsdax

See https://github.com/osalbahr/pmem-redirection


I experimented with fio, a well-known tool for I/O benchmarking. Here are some simple benchmarks with the following target files:

  1. $HOME/fio.txt - Network Filesystem (NFS)
  2. /mnt/fsdax/$USER/fio.txt - Persistent Memory (PMEM)
  3. /tmp/$USER/fio.txt - SSD (note: I called the job in the jobfile "ram-tmp" incorrectly, it should be "ssd-tmp")