This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| tune.ssl.default-dh-param 1024 | |
| defaults | |
| timeout connect 10000ms | |
| timeout client 60000ms | |
| timeout server 60000ms | |
| frontend fe_http | |
| mode http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //declare gulp variables | |
| var gulp = require('gulp'), | |
| gulpUtil = require('gulp-util'), | |
| concat = require('gulp-concat'), | |
| uglify = require('gulp-uglify'), | |
| jshint = require('gulp-jshint'), | |
| stylish = require('jshint-stylish'), | |
| autoprefixer = require("gulp-autoprefixer"), | |
| sass = require('gulp-ruby-sass'), |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.confto/usr/local/etc/nginx/default.confanddefault-ssl.confto/usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plistto/Library/LaunchDaemons/
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package recfun | |
| import scala.collection.mutable.ListBuffer | |
| import common._ | |
| /** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */ | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("Pascal's Triangle") | |
| for (row <- 0 to 10) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
NewerOlder