Changes with .dev domains in
mind.
Step 1 : Assign at least two IP address to your MAC OS (one per domain), let's say :
192.168.0.51
192.168.0.52
To setup the second IP you will have to add a second Ethernet Adapter (logical not physical).
| new-sandbox() { | |
| # If no argument is provided, prompt the user for an app name | |
| if [ -z "$1" ]; then | |
| echo -n "Enter the app name (or press Enter to use timestamp): " | |
| read appname | |
| # Use current time as the fallback if the user doesn't input a name | |
| appname=${appname:-$(date +%B-%d-%Y-%I%M%p | tr '[:upper:]' '[:lower:]')} | |
| else | |
| # Set the app name to the first argument | |
| appname="$1" |
| // app/routes/api/auth/$.ts | |
| import NextAuth from "~/lib/next-auth/index.server"; | |
| export const { action, loader } = NextAuth({ | |
| providers: [ | |
| GoogleProvider({ | |
| clientId: env.GOOGLE_CLIENT_ID, | |
| clientSecret: env.GOOGLE_CLIENT_SECRET, | |
| }), | |
| ], |
Changes with .dev domains in
mind.
Step 1 : Assign at least two IP address to your MAC OS (one per domain), let's say :
192.168.0.51
192.168.0.52
To setup the second IP you will have to add a second Ethernet Adapter (logical not physical).
| /** | |
| * Loads an HTML document from a URL and retuns an element selected using | |
| * the 'selector' parameter | |
| * Example usage: | |
| * loadPageSection('./myPage.html', '#container', (r, err) => console.log(r, err)); | |
| * | |
| * @method loadPageSection | |
| * @param {String} url | |
| * @param {String} selector - A valid CSS selector | |
| * @param {Function} callback - To be called with two parameters (response, error) |
Pure JavaScript Zoom and Pan, taken from http://phrogz.net/tmp/canvas_zoom_to_cursor.html
A Pen by TechSlides on CodePen.
| UITableView convenience classes for resizing header and footer with autolayout. |
| var gulp = require('gulp'), | |
| concat = require('gulp-concat'), | |
| plumber = require('gulp-plumber'), | |
| server = require('tiny-lr')(), | |
| refresh = require('gulp-livereload'), | |
| mocha = require('gulp-mocha'), | |
| stylus = require('gulp-stylus'), | |
| notify = require('gulp-notify'), | |
| nodemon = require('gulp-nodemon'), | |
| jshint = require('gulp-jshint'), |
/Volumes/Untitled.With that volume in place, and with the macOS installer sitting in /Applications/Install\ macOS\ [VERSION].app,
run the following command in your terminal to create a bootable install media (for Sierra):
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction| platform :ios, '5.0' | |
| # Awesome networking | |
| pod 'AFNetworking' | |
| # Backported UICollectionView | |
| pod 'PSTCollectionView' | |
| # Rich text | |
| pod 'TTTAttributedLabel' |