Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
(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.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
| import mySaga from 'mySaga'; | |
| import { take, fork, cancel } from 'redux-saga/effects'; | |
| const sagas = [mySaga]; | |
| export const CANCEL_SAGAS_HMR = 'CANCEL_SAGAS_HMR'; | |
| function createAbortableSaga (saga) { | |
| if (process.env.NODE_ENV === 'development') { | |
| return function* main () { |
| DELIMITER $$ | |
| CREATE FUNCTION `haversine` (lat1 DECIMAL(8,6), lng1 DECIMAL(8,6), lat2 DECIMAL(8,6), lng2 DECIMAL(8,6)) RETURNS DECIMAL(8,6) | |
| BEGIN | |
| DECLARE R INT; | |
| DECLARE dLat DECIMAL(30,15); | |
| DECLARE dLng DECIMAL(30,15); | |
| DECLARE a1 DECIMAL(30,15); | |
| DECLARE a2 DECIMAL(30,15); | |
| DECLARE a DECIMAL(30,15); | |
| DECLARE c DECIMAL(30,15); |
| This gist is created because the library i use eloquent-oauth-l5 has a pull-request (custom providers feature ) awaiting a merge | |
| So here my way to use this feature and use keycloak as custom provider. | |
| Inside composer.json | |
| "repositories": [ | |
| { | |
| "type": "vcs", | |
| "url": "https://github.com/tysonlt/eloquent-oauth-l5" | |
| } |
This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.
Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.
See a demo at http://stuff.dan.cx/js/filepicker/google/
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| echo "Box type must be specified (virtualbox, vmware_desktop, parallels)" | |
| exit 1 | |
| fi | |
| # Find all boxes which have updates | |
| AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2` |