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 April 30, 2023 11:16
How to fix the `bash: unmount: command not found` error

How to fix the bash: unmount: command not found error

It's a sneaky one (a typo), you need to use: umount instead!

@ErykDarnowski
ErykDarnowski / README.md
Last active August 13, 2023 20:34
How to copy both hidden and visible files from the current folder using `scp`

How to copy both hidden and visible files from the current folder using scp

# Local -> Remote:
scp -r <local_path> <host>@<ip>:<remote_path>

# Remote -> Local:
scp -r <host>@<ip>:<remote_path> <local_path>
@ErykDarnowski
ErykDarnowski / README.md
Last active April 30, 2023 11:16
How to run `diff` on outputs of two commands

How to run diff on outputs of two commands

diff <(<first_command>) <(<second_command>)
@ErykDarnowski
ErykDarnowski / bat_report.bat
Last active April 30, 2023 10:53
How to automatically generate and open a battery report file on Windows
@echo off
:: Vars:
SET filename=battery-report.html
:: Generate the battery report file (in script's path):
powercfg /batteryreport > nul
:: Open the file (in the default browser):
@ErykDarnowski
ErykDarnowski / README.md
Last active April 30, 2023 11:15
How to fix the `-bash: /usr/bin/scp: No such file or directory` error when trying to use `scp`

How to fix the -bash: /usr/bin/scp: No such file or directory error when trying to use [scp][1]

Simply install [openssh][2], like so:

# on Arch:
sudo pacman -S openssh

and try using [scp][1] again!

@ErykDarnowski
ErykDarnowski / README.md
Last active April 30, 2023 11:01
How to fix Vim / Neovim not copying to system clipboard

How to fix Vim / Neovim not copying to system clipboard

If you can't copy text from Vim / Neovim to your system's clipboard, for instance when using the "+y shortcut (I've encountered this issue when testing out Fedora + KDE + Wayland).

Try installing the wl-clipboard package, like so:

sudo dnf install wl-clipboard
@ErykDarnowski
ErykDarnowski / README.md
Last active November 6, 2024 14:35
How to install Docker and Docker Compose on Arch Linux
@ErykDarnowski
ErykDarnowski / README.md
Last active May 25, 2025 17:11
How to install Firefox Developer Edition on Linux Fedora

How to install Firefox Developer Edition on Linux Fedora

  1. Make sure the dnf-plugins-core package is installed.

  2. Enable the the4runner/firefox-dev Copr repository:

    sudo dnf copr enable the4runner/firefox-dev
  3. Install Firefox Developer Edition:

@ErykDarnowski
ErykDarnowski / README.md
Last active July 31, 2023 02:37
How to automatically and easily install Docker on Linux

How to automatically and easily install Docker on Linux

  1. Make sure you have curl installed and run:
curl https://get.docker.com -s | sh
  1. (you may not have to perform this step) Get command for installing newuidmap and newgidmap binaries by running:
@ErykDarnowski
ErykDarnowski / README.md
Last active July 16, 2025 11:29
How to automatically mount a network Samba share on Arch Linux!

How to automatically mount a network Samba share on Arch Linux!

  1. Install the [cifs-utils][1] package: sudo pacman –S cifs-utils.
  2. Make a mount folder for the SMB share: sudo mkdir /mnt/<Path>.
  3. Create a backup of the [fstab][2] file (just in case): sudo cp /etc/fstab /etc/fstab_backup.
  4. Open the [fstab][2] file in your favorite editor: sudo vim /etc/fstab.
  5. Add the mount line: //<Server_address>/<Server_share_and_internal_path> /mnt/<Path> cifs username=<Server_user>,pass=<Server_password> 0 0.
  1. Save the file.
  2. Reload [fstab][2]: sudo mount -av.