Page 1

🚧 Fix read/write permissions

ruby_logoSo it turns our that some permissions in the CUDA toolkit weren’t set up correctly. I noticed this by a handy dandy warning, when running some Ruby code, and it looked like this:

warning: Insecure world writable dir /usr/local/cuda/bin in PATH, mode 040777

Luckily there’s a simple fix which is to adjust the permissions and (as I fear I will stumble over this more often) I decided to take a quick note of the solution. Simply use the chmod command like below and the warning will no longer appear.

sudo chmod go-w /usr/local/cuda/bin
The end

Say good bye to Spotlight files

Let’s make this short: I have a NAS, I use it with Windows, Mac and even Ubuntu, yet that rather rarely, and the only operating system that decides to litter lots of indexing files on my storage is Apple’s offspring. Anybody who’s seen the hidden .DS_Store directory knows that those tiny files may have negligible size, but their nuisance factor is still present. So, if you were super smart like I am and set up an SSH server on your NAS, you can use the simple bash commands to search and delete all .DS_Store and associated directories. Using

find . -name ".DS_Store" -print0 | xargs -0 rm -rf

followed by

find . -name "._*" -print0 | xargs -0 rm -rf

deletes all .DS_Store directories and associated Spotlight folders in your current directory, respectively. Alternatively run

find . \( -name '.DS_Store' -or -name '._*' \) -delete

to achieve the same in one line. Hope this is useful, at least for me it was.

The end