What worked for me was updating the “Refresh Rate” from 30HZ to 60HZ:
Continue readingCategory Archives: OS X
Useful Commands for Cleaning up Storage
To sort folders by their size, recursively:
$ du -h | sort -h
Then, to delete any folder of the name to_delete
:
$ rm -rf `find . -type d -name to_delete`
How to Kill Whatever’s Running on Port 80
In terminal:
$ lsof -t -i tcp:80 | xargs kill
Parallels Breaking Wacom
If your Wacom tablet stopped working after you installed Parallels.
Continue readingMac: How to Find Out Which App Is Blocking a Hotkey
If some hotkey doesn’t work for you, it’s likely that it got blocked by some other app in the background.
Continue readingHow to Install Android SDK
Setting up React Native Environment following create-react-native-app.
You have to install development tools first.
That was a very vague error message when installing certain gems. What we need to do is:
NPM: ERRORINUSE
For error:
Error: listen EADDRINUSE :::3042
We just need to kill whatever that’s on the port. Probably the last exit wasn’t clean. Do:
$ lsof -i :3042 // to find out the PID number $ kill -9 PID // kill the process with its PID
Permission Denied for mkdir
Just reclaim ownership of the untamed parent directory, instead of sudo
-ing every single time.
Remapping Keys in Sierra
Because of my use of VIM, ESC is much more useful to me than the more easily accessible CapsLock. I’ve always used Seil to switch them, until it started to fail in the new MacOS, Sierra.
After a bit of search, Karabiner solved my problem wonderfully.