mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
File locations:
nginx.confto/usr/local/etc/nginx/defaultanddefault-sslto/usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plistto/Library/LaunchDaemons/
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
File locations:
nginx.conf to /usr/local/etc/nginx/default and default-ssl to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| sass = require('gulp-sass'), | |
| csso = require('gulp-csso'), | |
| uglify = require('gulp-uglify'), | |
| jade = require('gulp-jade'), | |
| concat = require('gulp-concat'), | |
| livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei | |
| tinylr = require('tiny-lr'), | |
| express = require('express'), |
| #star on APM and install using apm stars --install | |
| #productivity all langs | |
| apm install autocomplete-plus | |
| apm install autocomplete-snippets | |
| apm install open-last-project | |
| apm install git-log | |
| apm install git-history |
| #!/bin/sh | |
| # install homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # homebrew-cask | |
| brew tap phinze/homebrew-cask | |
| brew install brew-cask | |
| # development |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Updated: 2010/12/05 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
| // | |
| // Permission is hereby granted, free of charge, to any person |
| <ifModule mod_rewrite.c> | |
| Options +FollowSymLinks | |
| IndexIgnore */* | |
| RewriteEngine On | |
| RewriteBase /gift/ | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.+)$ index.php/$1 [L,QSA] | |
| </ifModule> |
| /*TODO Remove Tag when Done */ | |
| var request = require('request'); | |
| var cheerio = require('cheerio'); | |
| var fs = require('fs'); | |
| console.log('retrieving unicode table...'); | |
| request.get('http://unicode.org/emoji/charts/full-emoji-list.html', function (err, response, body) { | |
| console.log('loading data...'); |
| declare namespace F { | |
| class Either<A, B> { | |
| private constructor(); | |
| // Hack to make A and B covariant. | |
| private a: A; | |
| private b: B; | |
| static Left<A, B>(a: A): Either<A, B>; | |
| static Right<A, B>(b: B): Either<A, B>; |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |