Why does Grunt not add itself to the shell?

Since Grunt version 0.4 (which was released 1 or 2 weeks ago) you need to install the grunt command line tool globally (if needed, use sudo before the command): npm install -g grunt-cli In your project location you then install the latest grunt version: npm install grunt –save-dev Option –save-dev will save the npm config …

Read more

Install and configure mod_rewrite for Apache 2 on Mac OS X for Zend Framework 2

To check that mod_rewrite and PHP are enabled, look at /etc/apache2/httpd.conf and ensure that these lines: LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule php5_module libexec/apache2/libphp5.so are uncommented. Also ensure that AllowOverride is set to All within the <Directory “/Library/WebServer/Documents”> section. After making these changes, restart Apache with: sudo apachectl restart If you then put your project within the …

Read more

Terminal: Where is the shell start-up file?

You’re probably using bash so just add these 3 lines to ~/.bash_profile: $ cat >> ~/.bash_profile export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/directory-you-do-development-in source /usr/local/bin/virtualenvwrapper.sh ^D where ^D means you type Control+D (EOF). Then either close your terminal window and open a new one, or you can “reload” your .bash_profile like this: $ source ~/.bash_profile

How can I debug a Launchd script that doesn’t run on startup?

Best way I found to debug, in your plist: <key>StandardErrorPath</key> <string>/tmp/mycommand.err</string> <key>StandardOutPath</key> <string>/tmp/mycommand.out</string> Open Console app, in “All Messages” you should see entries when your app fails or succeeds. Like this: 4/28/15 10:43:19.938 AM com.apple.xpc.launchd[1]: (mycommand[18704]) Service exited with abnormal code: 1 The issue I had was with ProgramArguments takes each item of command as …

Read more

How to increase limits on sockets on osx for load testing?

(answer updated to use -S as several commenters suggested) $ sysctl kern.maxfiles kern.maxfiles: 12288 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 10240 $ sudo sysctl -w kern.maxfiles=1048600 kern.maxfiles: 12288 -> 1048600 $ sudo sysctl -w kern.maxfilesperproc=1048576 kern.maxfilesperproc: 10240 -> 1048576 $ ulimit -S -n 256 $ ulimit -S -n 1048576 $ ulimit -S -n 1048576