We have a number of private npm packages, and I needed to create a new user, grant that user read-only access to our private packages. The npm docs are great. Really great. Go there for details. But here are the key commands for this (probably common) series of steps. Create a new team $ npm… Continue reading npm CLI Quick-Start for Organizations
Tag: tips
So you want to move your Homebrew folder
By default, Homebrew gets installed under /usr/local. This is great, because it doesn’t require you to use sudo to install and upgrade packages. But the downside is that it turns your /usr/local directory into a git repository. If you don’t have any conflict with this, then by all means, stick with the default. I had… Continue reading So you want to move your Homebrew folder
Resetting NTFS files security and permission in Windows
Resetting NTFS files security and permission in Windows. Life saver for someone (me) who still reluctantly maintains a Windows machine.
icacls * /T /Q /C /RESET
Using watch with a bash alias
I love the Unix watch command. On OSX, you can install it easily with Homebrew: brew install watch Something I didn’t realize until 10 minutes ago is that if you want to watch the output of something in your bash aliases, watch will complain because it cannot find the command. This is because watch evaluates… Continue reading Using watch with a bash alias
How do I add an empty directory to a git repository?
Via Stack Overflow. And, of course, git add the empty directory. So helpful.
Remap Mac Terminal Command-K
In case I need to remember that I did this… By default, the Mac Terminal assigns the “Clear Scrollback” command to Command-K. This is annoying, because I often use Nano, which uses Control-K to cut a line of text, and I frequently press Command-K instead of Control-K by accident. This clears my screen while I’m… Continue reading Remap Mac Terminal Command-K
XMPP and Google Apps for Domains
Jesus, my head hurts. I setup xmpppy on my box, thinking I could quickly set up a bot to run as one of my Google Apps for Domains users. I’ve spent about six or seven hours (off and on) getting this to work, though, because the documentation from Google about setting up my DNS configuration… Continue reading XMPP and Google Apps for Domains