A quick guide on how to setup Node.js development environment.
Previous versions of these install instructions had been tested with:
| import os | |
| import socket | |
| from OpenSSL import crypto, SSL | |
| # OpenVPN is fairly simple since it works on OpenSSL. The OpenVPN server contains | |
| # a root certificate authority that can sign sub-certificates. The certificates | |
| # have very little or no information on who they belong to besides a filename | |
| # and any required information. Everything else is omitted or blank. | |
| # The client certificate and private key are inserted into the .ovpn file | |
| # which contains some settins as well and the entire thing is then ready for |
A quick guide on how to setup Node.js development environment.
Previous versions of these install instructions had been tested with:
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
| /* | |
| * Node.js Sample Server with Restify | |
| * Copyright (C) 2014 - Thiago Uriel M. Garcia | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <handlers> | |
| <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> | |
| </handlers> | |
| <httpPlatform processPath="%JAVA_HOME%\bin\java.exe" | |
| arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar "%HOME%\site\wwwroot\gs-serving-web-content-0.1.0.jar""> | |
| </httpPlatform> | |
| </system.webServer> |
| #!/bin/sh | |
| # check for where the latest version of IDEA is installed | |
| IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
| wd=`pwd` | |
| # Setup your working directory. Edit 'work' to your working directory. | |
| working_dir=`ls -1d ~/work/$1 | head -n1` | |
| # were we given a directory? | |
| if [ -d "$1" ]; then |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases. | |
| # Much of this was originally copied from: | |
| # http://natelandau.com/my-mac-osx-bash_profile/ | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management |
Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.
The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.