(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var request = require('request'); | |
| function setDownloadName(req, res, fileName) { | |
| var userAgent = (req.headers['user-agent'] || '').toLowerCase(); | |
| if (userAgent.indexOf('chrome') > -1) { | |
| res.setHeader('Content-Disposition', 'attachment; filename=' + encodeURIComponent(fileName)); | |
| } else if (userAgent.indexOf('firefox') >-1) { | |
| res.setHeader('Content-Disposition', 'attachment; filename*="utf8\'\'' + encodeURIComponent(fileName) + '"'); | |
| } else { | |
| res.setHeader('Content-Disposition', 'attachment; filename=' + new Buffer(fileName).toString('binary')); |
| Gandi.net ssl certificate working with haproxy | |
| In one file concatenate the certifcate with the private key (domain.pem in the example) | |
| In other file just the intermediate ceritificate (gandi.ca.pem in the example) then in your haproxy.cfg | |
| bind *:443 ssl crt /home/.ssh/domain.pem ca-file /home/.ssh/gandi.ca.pem | |
| frontend https-in | |
| bind *:443 ssl crt /home/.ssh/domain.pem ca-file /home/.ssh/gandi.ca.pem | |
| timeout client 1h |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
| <!-- | |
| Created using jsbin.com | |
| Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
| --> | |
| <body> | |
| <canvas id="the-canvas" style="border:1px solid black"></canvas> | |
| <input id='pdf' type='file'/> | |
| <!-- Use latest PDF.js build from Github --> |
Heil PR40 Package - http://www.bswusa.com/Dynamic-Microphones-Heil-Sound-PR40-Package-P7628.aspx
This is a great deal, and is a perfect mic for this stuff.
OC White Boom - http://www.ocwhite.com/broadcast-arms/proboomtm-elite-extended-reach-mic-arm-with-riser-45-reach-12-vertical-riser.html
The kit comes with a boom. It is decent, I guess, but this OC White boom is badass prostyle with a 4' reach and a 15" riser that lets it live behind my monitor.
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| package main | |
| /* | |
| * Script that scrapes google front page | |
| * Usage: ./google [<query>] | |
| * e.g. ./google hacker news | |
| */ | |
| import ( | |
| "fmt" |
| // | |
| // RSTimingFunction.h | |
| // | |
| // Created by Raphael Schaad on 2013-09-28. | |
| // This is free and unencumbered software released into the public domain. | |
| // | |
| #import <UIKit/UIKit.h> |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| [program:lss] | |
| process_name=Shipper | |
| command=java -jar /usr/local/logstash/bin/logstash-1.1.9-monolithic.jar agent --config /usr/local/logstash/conf/shipper.conf --log /usr/local/logstash/log/shipper.log | |
| user=logstash | |
| startretries=3 | |
| redirect_stderr=true | |
| std_out_logfile=NONE | |
| startsecs=3 | |
| environment=HOME="/usr/local/logstash/" |