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.
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.
| // assumes you add a timestamp field to each record (see Firebase.ServerValue.TIMESTAMP) | |
| // pros: fast and done server-side (less bandwidth, faster response), simple | |
| // cons: a few bytes on each record for the timestamp | |
| var ref = new Firebase(...); | |
| ref.orderByChild('timestamp').startAt(Date.now()).on('child_added', function(snapshot) { | |
| console.log('new record', snap.key()); | |
| }); |
| // Fix Vendor Prefixes | |
| var IS_CHROME = !!window.webkitRTCPeerConnection, | |
| RTCPeerConnection, | |
| RTCIceCandidate, | |
| RTCSessionDescription; | |
| if (IS_CHROME) { | |
| RTCPeerConnection = webkitRTCPeerConnection; | |
| RTCIceCandidate = window.RTCIceCandidate; | |
| RTCSessionDescription = window.RTCSessionDescription; |
| server { | |
| listen 80; | |
| server_name *.foo.example.com; | |
| # We need this to resolve the host, because it's a wildcard. | |
| # This is google's DNS server. | |
| resolver 8.8.8.8; | |
| include /etc/nginx/includes/proxy.conf; |
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| ## | |
| ## This nginx.conf servers as the main config file for webflow reverse proxy | |
| ## | |
| ## RCS: | |
| ## https://gist.github.com/sansmischevia/5617402 | |
| ## | |
| ## Hardening tips: | |
| ## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html | |
| ## |
| fractalModule =function(stdlib){ | |
| "use asm"; | |
| var pow = stdlib.Math.pow; | |
| var abs = stdlib.Math.abs; | |
| var atan2 = stdlib.Math.atan2; | |
| var cos = stdlib.Math.cos; | |
| var sin = stdlib.Math.sin; | |
| function mandlebrot(cx, cy, maxIter) { | |
| cx = +cx; | |
| cy = +cy; |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
| // Documented by Stoyan Stefanov: https://www.facebook.com/note.php?note_id=10151176218703920 | |
| (function() { | |
| var url = 'http://example.org/js.js'; | |
| var iframe = document.createElement('iframe'); | |
| (iframe.frameElement || iframe).style.cssText = | |
| "width: 0; height: 0; border: 0"; | |
| iframe.src = "javascript:false"; | |
| var where = document.getElementsByTagName('script')[0]; | |
| where.parentNode.insertBefore(iframe, where); | |
| var doc = iframe.contentWindow.document; |
| # Ubuntu instructions | |
| # Get the pre-reqs for this (Ubuntu) | |
| sudo apt-get install git-core build-essential zlib1g-dev libpcre3 libpcre3-dev redis-server libssl-dev libgeoip-dev libgoogle-perftools-dev geoip-database lua5.1 liblua5.1-0 liblua5.1-0-dev lua-iconv-dev libghc-iconv-dev luarocks libpcre3-dev libghc-zlib-bindings-dev | |
| # For Centos: | |
| sudo yum install wget | |
| wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 | |
| wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm |