Skip to content

Instantly share code, notes, and snippets.

@Hashbrown777
Last active February 2, 2024 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hashbrown777/9e3aa137230bf298b674d3e1471ca8b6 to your computer and use it in GitHub Desktop.
Save Hashbrown777/9e3aa137230bf298b674d3e1471ca8b6 to your computer and use it in GitHub Desktop.
sudo btrfs filesystem usage -T /mnt/*
btrfs fi df /mnt/*
sudo btrfs device stats /mnt/*
@Hashbrown777
Copy link
Author

(
	gci $dir `
	| ?{
		$_.Name -cmatch "^($((
			'some',
			'directories'
		) -join '|'))"
	} `
	| gci -Recurse -File
) | %{
	do {
		if (!$?) {
			vpn/umount.sh
			vpn/mount.sh
			pause
		}
		md5sum $_.FullName
	} while (!$?)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment