create a folder on your hard drive labeled "Dropbox-personal" (or whatever name you want) in your home folder.
then run HOME=$HOME/Dropbox-personal /Applications/Dropbox.app/Contents/MacOS/Dropbox & in your terminal
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| require_once 'post-types/event.php'; | |
| // WP Menu Categories | |
| add_action( 'init', 'build_taxonomies', 0 ); | |
| function build_taxonomies() { | |
| register_taxonomy( 'category', 'event', array( | |
| 'hierarchical' => true, | |
| 'label' => 'Categorieën', | |
| 'query_var' => true, |
| module.exports = function windowOnLoad(func) { | |
| // pass the function you want to call at 'window.onload', in the function defined above | |
| // assign any pre-defined functions on 'window.onload' to a variable | |
| var oldOnLoad = window.onload; | |
| // if there is not any function hooked to it | |
| if (typeof window.onload != 'function') { | |
| // you can hook your function with it | |
| window.onload = func | |
| } else { // someone already hooked a function | |
| window.onload = function () { |
| var App = angular.module('app', ['ui.bootstrap', 'angularFileUpload'], function ($httpProvider) { | |
| // Use x-www-form-urlencoded Content-Type | |
| $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'; | |
| /** | |
| * The workhorse; converts an object to x-www-form-urlencoded serialization. | |
| * @param {Object} obj | |
| * @return {String} | |
| */ | |
| var param = function (obj) { |
create a folder on your hard drive labeled "Dropbox-personal" (or whatever name you want) in your home folder.
then run HOME=$HOME/Dropbox-personal /Applications/Dropbox.app/Contents/MacOS/Dropbox & in your terminal
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
If you just want to fix the issue quickly, scroll down to the "solution" section below.
If you're a Mac Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you will see an error like this:
$ npm update npm -g
| var hostname = req.headers['x-forwarded-server']; | |
| if (typeof hostname == "undefined") { | |
| hostname = ( req.headers.host.match(/:/g) ) ? req.headers.host.slice(0, req.headers.host.indexOf(":")) : req.headers.host; | |
| } |
| web/app/themes/stash/bower | |
| web/app/uploads | |
| .idea | |
| .env | |
| .bowerrc | |
| bower.json | |
| Capfile* | |
| Gemfile* | |
| deploy.sh | |
| deploy-ignore.txt |
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <system.web> | |
| <compilation debug="false" targetFramework="4.0"/> | |
| </system.web> | |
| <system.webServer> | |
| <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> | |
| <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/> | |
| <dynamicTypes> | |
| <add mimeType="text/css" enabled="true"/> |