8000 GitHub - tylert/dotfiles
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tylert/dotfiles

Folders and files

 
NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Annoyances

$ touch ~/.face
$ ln -sf ~/.face ~/.face.icon
$ ~/bin/rmshit.py
Found shitty files:
    /home/meh/.face
    /home/meh/.face.icon
Remove all? (y/[n]) y
Traceback (most recent call last):
  File "/home/meh/bin/rmshit.py", line 158, in <module>
    main()
  File "/home/meh/bin/rmshit.py", line 151, in main
    rmtree(f)
  File "/usr/lib/python3.12/shutil.py", line 759, in rmtree
    _rmtree_safe_fd(stack, onexc)
  File "/usr/lib/python3.12/shutil.py", line 703, in _rmtree_safe_fd
    onexc(func, path, err)
  File "/usr/lib/python3.12/shutil.py", line 674, in _rmtree_safe_fd
    topfd = os.open(name, os.O_RDONLY | os.O_NONBLOCK, dir_fd=dirfd)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/meh/.face.icon'

macOS

If you encounter silly DNS problems in macOS, you may need the following command:

sudo dscacheutil -flushcache ; sudo killall -HUP mDNSResponder

Occasionally, you will run into a file in your home directory that you aren't allowed to execute or delete. This is caused by macOS trying to be "helpful". You can fix this on a case-by-case basis by typing:

xattr -d com.apple.quarantine /path/to/file
xattr -d com.apple.macl /path/to/file  # might not be needed

Fix a bunch of them in bulk perhaps using:

find /path/to/directory -exec xattr -d com.apple.quarantine {} \;
find /path/to/directory -exec xattr -d com.apple.macl {} \;  # might not be needed

You can also fix this behaviour permanently for all files using:

sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
sudo reboot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0