Skip to content

Instantly share code, notes, and snippets.

View rfjakob's full-sized avatar

rfjakob

  • Vienna, Austria
View GitHub Profile
$ nvim --version
NVIM v0.5.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/builddir/build/BUILD/neovim-0.5.0/x86_64-redhat-linux-gnu/config -I/builddir/build/BUILD/neovim-0.5.0/src -I/usr/include -I/usr/include/
~/openssl-3.0.0# perl configdata.pm --dump
Command line (with current working directory = .):
/usr/bin/perl ./Configure linux-armv4
Perl information:
/usr/bin/perl
5.32.1 for arm-linux-gnueabihf-thread-multi-64int
root@b135577e8e14:~/openssl-3.0.0# perl configdata.pm --dump
Command line (with current working directory = .):
/usr/bin/perl ./Configure
Perl information:
/usr/bin/perl
5.32.1 for aarch64-linux-gnu-thread-multi
@rfjakob
rfjakob / pam_mount.conf.xml
Created August 28, 2021 08:20
/etc/security/pam_mount.conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<!--
See pam_mount.conf(5) for a description.
-->
<pam_mount>
<!-- debug should come before everything else,
since this file is still processed in a single pass
Running on a Raspberry Pi 4, ubuntu arm64, /tmp is a tmpfs.
jakob@ubuntu:~/gocryptfs$ ./benchmark.bash
Testing gocryptfs at /tmp/benchmark.bash.oXb: gocryptfs v2.1-28-g62ed081.xchacha; go-fuse v2.1.1-0.20210802120645-15a8bb029a4e; 2021-08-24 go1.17 linux/arm64
/tmp/benchmark.bash.oXb.mnt is a mountpoint
WRITE: 262144000 bytes (262 MB, 250 MiB) copied, 9.76918 s, 26.8 MB/s
READ: 262144000 bytes (262 MB, 250 MiB) copied, 7.24712 s, 36.2 MB/s
UNTAR: 72.591
MD5: 41.548
LS: 10.238
#!/bin/bash
#
# Minimal subset of https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/generic/080 :
# mmap-write to "mmap_mtime_testfile" and check if mtime changes.
#
# Output on ext4 looks like this:
#
# $ .../mmap_mtime.sh
# mtime before: 2021-05-21 18:30:40.661712716 +0200
# sleep 1; mmap write
@rfjakob
rfjakob / pstree-fedora34.txt
Last active May 6, 2021 07:35
number in brackets is the progress group id (pgid)
0 jakob@dell19 ~ $ pstree -gT
systemd(1)─┬─ModemManager(1234)
├─NetworkManager(1393)
├─abrt-dbus(2724)
├─abrt-dump-journ(1352)
├─abrt-dump-journ(1354)
├─abrt-dump-journ(1356)
├─abrtd(1298)
├─accounts-daemon(1367)
├─alsactl(1311)
#!/bin/bash
set -x
cd ~/go/src/github.com/rfjakob/gocryptfs/tests/stress_tests || exit 1
export TMPDIR=/mnt/ext4-ramdisk
for i in $(seq 1 1000) ; do
LOG="/tmp/fsstress.log.$(date --iso).$i"
if [[ -e $LOG ]]; then
continue
fi
rm -Rf "$TMPDIR"/fsstress*
@rfjakob
rfjakob / ls.txt
Created May 24, 2020 22:18
ls -l /mnt/synology/public/tmp/g1
$ ls -l /mnt/synology/public/tmp/g1
total 0
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1000
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1001
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1002
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1003
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1004
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1005
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1006
-rwxr-xr-x. 1 jakob jakob 0 May 24 21:56 1007
@rfjakob
rfjakob / stats-ext4.txt
Created May 2, 2020 15:12
./stats.sh &> stats-ext4.txt
+ date
Sat 02 May 2020 03:11:29 PM UTC
+ cat /proc/spl/kstat/zfs/arcstats
cat: /proc/spl/kstat/zfs/arcstats: No such file or directory
+ free -m
total used free shared buff/cache available
Mem: 3918 159 2996 1 761 3499
Swap: 0 0 0
+ echo 3
+ sleep 1