Skip to content

Instantly share code, notes, and snippets.

View danielvartan's full-sized avatar

Daniel Vartanian danielvartan

View GitHub Profile
@danielvartan
danielvartan / btrfs.sh
Last active August 26, 2025 20:47
How to Check File Usage on BTRFS Systems
df -h
sudo btrfs filesystem df /
sudo btrfs filesystem usage /
@danielvartan
danielvartan / symlink.sh
Last active August 26, 2025 20:50
Symlink Commands on Linux
@danielvartan
danielvartan / fzf.sh
Last active August 26, 2025 20:48
Fuzzy FInder (`fzf`) Commands
# To find files with a particular term (with lines):
rg --line-number --no-heading 'search_term' | fzf
@danielvartan
danielvartan / icon-cache.sh
Last active August 26, 2025 20:46
How to Refresh the Icon Cache on Linux
# Source: https://askubuntu.com/questions/722708/how-do-i-refresh-the-icon-cache
sudo update-icon-caches /usr/share/icons/*
@danielvartan
danielvartan / ffmeg-cut-video.sh
Last active August 26, 2025 20:47
FFMEG commands
# Source: https://stackoverflow.com/a/42827058/8258804
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4