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/
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| var cfg = require('../config').Config, | |
| qs = require('querystring'), | |
| request = require('request'); | |
| request = request.defaults({jar: true}) | |
| exports.awesome = function(req, res){ | |
| headers = {}; |
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/| #!/bin/bash | |
| dir=$1 | |
| for f in "$dir"/*; do | |
| pre=${f:0:4} | |
| post=${f:7} | |
| fn=$((${f:4:3} - 1)) | |
| jj=`printf "%03d" $fn` | |
| mv $f $pre${jj}_tmp$post # prevent overrite | |
| done |
| Build in syntax | |
| Gist Liquid Tag | |
| Example: | |
| {% gist username/1234567 %} | |
| {% gist username/1234567 file.rb %} | |
| or use the following plugin to customize... |
| # linted | |
| # Written by Brendan O'Connor, brenocon@gmail.com, www.anyall.org | |
| # * Originally written Aug. 2005 | |
| # * Posted to gist.github.com/16173 on Oct. 2008 | |
| # Copyright (c) 2003-2006 Open Source Applications Foundation | |
| # | |
| # 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 |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: unicorn | |
| # Required-Start: $local_fs $remote_fs mysql | |
| # Required-Stop: $local_fs $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: unicorn initscript | |
| # Description: Unicorn is an HTTP server for Rack application | |
| ### END INIT INFO |