npx npkill -f -s size -E ".config, .cache, .local, .nvm, .npm, .vscode"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
check_sail_containers_status() { | |
# A bit of delay to not run the function too quickly: | |
sleep 2 | |
# Getting current container state: | |
local STATUS=$(sudo ./vendor/bin/sail ps | grep starting) | |
# Checking if they're healthy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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): |
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
Prepare by burning Linux on to a USB drive and booting in to it (on the computer that has the drive/s you want to access installed).
- Find the drive's path (something along the lines of
/dev/nvme0n1p3
):sudo fdisk -l
- Create a directory for mounting it:
sudo mkdir -p /mnt/drive
- Mount it:
sudo mount <drive_path> /mnt/drive
- Access it:
cd /mnt/drive
How to run diff
on outputs of two commands
diff <(<first_command>) <(<second_command>)
It's a sneaky one (a typo), you need to use: umount
instead!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expo as appJson } from '../app.json'; | |
// @ts-ignore | |
const packageName: string = appJson.android.package ?? 'host.exp.exponent'; | |
// ^ Gets the apps package name, however if the `Expo Go` app is used it defaults to it's package name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max_parallel_downloads=10 # Increases amount of concurrent pkg downloads (you can also try tweaking this option) | |
fastestmirror=True # Picks the fastest mirror | |
defaultyes=True # Makes the defualt option in `[y/N]` menus 'Y' instead of 'N' (so you don't have to type 'y' every time) |
OlderNewer