Skip to content

Instantly share code, notes, and snippets.

View vbz-repo's full-sized avatar

Valdis vbz-repo

  • Latvia
  • 04:57 (UTC +02:00)
View GitHub Profile
@vbz-repo
vbz-repo / compare-file-metadata.sh
Last active August 25, 2024 11:30
Comparing the metadata of two files
#!/usr/bin/env bash
# Compare the metadata of two files:
# file type
# permission bits in octal
# raw mode in hex
# user ID of owner
# group ID of owner
# user name of owner
# group name of owner
@vbz-repo
vbz-repo / feh-examples.md
Last active August 18, 2025 01:28
feh command line with examples

feh command line with examples

feh is an X11 image viewer aimed mostly at console users. Unlike most other viewers, it does not have a fancy GUI, but simply displays images.
It is controlled via commandline arguments and configurable key/mouse actions.

-- feh website

Slideshow mode

@vbz-repo
vbz-repo / cpu-performance.md
Last active May 6, 2022 17:34
Check the storage performance with "dd".

Check the cpu performance with "dd".

dd if=/dev/zero bs=1M count=1024 | md5sum
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.31041 s, 819 MB/s
cd573cfaace07e7949bc0c46028904ff  -