Just found out this Ruby syntax, for iterating over a hash (with an index).
hash.each_with_index { |(key,value), index| ... }
Just found out this Ruby syntax, for iterating over a hash (with an index).
hash.each_with_index { |(key,value), index| ... }
find . \( -name ".DS_Store" -or -name ".Trashes" -or -name "._*" -or -name ".TemporaryItems" \) -print
Check if the print is correct. When the file can be deleted. replace '-print' with '-delete'
Prevent ._ file creation (samba config)
[share-name]
veto files = /._*/.DS_Store/
delete veto files = yes
Nice little snippets to show the most recent branches.. (git recent)
git config --global alias.recent 'branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"
Thanks @tenderlove https://twitter.com/tenderlove/status/1392957802163802112?s=12
Spree::Product.only_deleted.map(&:really_destroy!)
Nice tool to analyze the size of your webpacker stuff.
https://github.com/aholachek/bundle-wizard
npx bundle-wizard www.example.com