Skip to content

Instantly share code, notes, and snippets.

View ErykDarnowski's full-sized avatar
🔧
Tinkering

Eryk Darnowski ErykDarnowski

🔧
Tinkering
View GitHub Profile
@ErykDarnowski
ErykDarnowski / README.md
Last active May 12, 2023 17:04
What does Fedora's `rpm -E` do

What does Fedora's rpm -E do

According to the rpm man page, the --eval flag is used to print the macro expansion of an expression³. This means that when you use this flag with an expression, rpm will evaluate any macros present in the expression and print the result (you can see an example of this in the RPM Fusion repos' install commands).

Bing

Resources

@ErykDarnowski
ErykDarnowski / README.md
Last active June 15, 2023 07:17
How to easily, quickly and temporarily (without playing around with `mount` and `fstab`) mount a filesystem on Linux

How to easily, quickly and temporarily (without playing around with mount and fstab) mount a filesystem on Linux

  1. Install sshfs

    apt (Ubuntu / Debian / Mint)
    sudo apt update -y
    sudo apt upgrade -y
    
@ErykDarnowski
ErykDarnowski / README.md
Last active December 5, 2023 18:00
GOG % rating converter [Userscript]

GOG % rating converter [Userscript]

A script that converts gog.com ratings from: 4.5 / 5 to: 90%.

Instructions

  1. Install a Userscript browser extension
@ErykDarnowski
ErykDarnowski / README.md
Created May 12, 2023 23:13
How to install an `.rpm` file on Fedora Linux

How to install an .rpm file on Fedora Linux

  1. Download the file (here I'm using rustdesk as an example):
wget https://github.com/rustdesk/rustdesk/releases/download/1.1.6/rustdesk-1.1.6-fedora28-centos8.rpm
  1. Install the package:
@ErykDarnowski
ErykDarnowski / README.md
Last active May 19, 2023 06:13
Node check files amount vs each file (`access`) vs each file (`readdir`) - benchmark

Node check files amount vs each file (access) vs each file (readdir) - benchmark

image

Usage

  1. Download all files
git clone https://gist.github.com/ErykDarnowski/2fa0d64d44f1d5616fa9d0851f60c135 'Node check files amount vs access vs readdir - benchmark'
@ErykDarnowski
ErykDarnowski / README.md
Last active May 19, 2023 06:13
Node get property from array of objects - benchmark

Node get property from array of objects - benchmark

image

Usage

  1. Download all files
git clone https://gist.github.com/ErykDarnowski/03a553ede773b801e2734779ac70cd03 'Node get property from array of objects - benchmark'
@ErykDarnowski
ErykDarnowski / README.md
Created May 22, 2023 16:46
How to install Microsoft Edge on Fedora Linux

How to install Microsoft Edge on Fedora Linux

*This should also work on CentOS and Red Hat Enterprise Linux

# Update your pkgs:
sudo dnf check-update
sudo dnf upgrade -y

# Import Microsoft repo key:
@ErykDarnowski
ErykDarnowski / README.md
Last active September 11, 2023 12:18
Fix missing KDE volume widget after messing with PulseAudio.

Fix missing KDE volume widget after messing with PulseAudio.

sudo dnf check-update
sudo dnf upgrade -y

sudo dnf install plasma-pa
@ErykDarnowski
ErykDarnowski / README.md
Created June 30, 2023 02:43
Fix PGP singature errors on Arch Linux.

Fix PGP singature errors on Arch Linux.

# Refresh the keys:
sudo pacman-key --refresh-keys

# Update the system:
sudo pacman -Syyu
@ErykDarnowski
ErykDarnowski / README.md
Last active September 11, 2023 12:23
Find files (excluding `*.git*` folders) and only write their **unique** extensions in to `out.txt`

Find files (excluding *.git* folders) and only write their unique extensions in to out.txt

find . -type 'f' -not -path '*.git*' | grep -oP "[^.]*$" | sort -u >> out.txt