by neolao
defaults write com.apple.screencapture location /Users/neolao/Screenshots
Pour 256M, il faut calculer 256 x 2048 = 524288
:
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nomount ram://524288`
Le disque a été monté par défaut dans /Volumes/RAMDisk
.
Pour le monter :
mount -t hfs /dev/disk5 /Users/neolao/ram
osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"'
say "hello"
unable to create pipe Too many open files in system
sysctl kern.maxfiles
https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1
showmount -e 10.0.1.8
cmd
bloqué virtuellementhttps://discussions.apple.com/thread/4815782?answerId=26823873022#26823873022
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode-select --install
Vérifier les préférences avec :
pmset -g
Désactiver :
sudo pmset -a disablesleep 1
Par défaut :
sudo pmset -a disablesleep 0
Ouvrir la liste avec command + option + escape
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist